Commit d5dfe4be authored by Jan Dinkelbach's avatar Jan Dinkelbach
Browse files

add GSL


Former-commit-id: d37c9905
parent eff71328
......@@ -47,6 +47,7 @@ find_package(PythonInterp 3.6)
find_package(PythonLibs 3.6)
find_package(Sundials)
find_package(VILLASnode)
find_package(GSL)
if(PythonInterp_FOUND AND PythonLibs_FOUND)
set(Python_FOUND ON)
......@@ -61,6 +62,7 @@ option(BUILD_SHARED_LIBS "Build shared library" OFF)
option(BUILD_EXAMPLES "Build C++ examples" ON)
option(COMPARE_REFERENCE "Download reference results and compare" OFF)
option(WITH_GSL "Enable GSL" ${GSL_FOUND})
option(WITH_SUNDIALS "Enable sundials solver suite" ${Sundials_FOUND})
option(WITH_SHMEM "Enable shared memory interface" ${VILLASnode_FOUND})
option(WITH_RT "Enable real-time features" ${Linux_FOUND})
......@@ -105,6 +107,7 @@ if(TOPLEVEL_PROJECT)
add_feature_info(Python WITH_PYTHON "Use DPsim as a Python module")
add_feature_info(Shmem WITH_SHMEM "Interface DPsim solvers via shared-memory interfaces")
add_feature_info(RT WITH_RT "Extended real-time features")
add_feature_info(GSL WITH_GSL "Use GNU Scientific library")
feature_summary(WHAT ALL VAR enabledFeaturesText)
message(STATUS "Building ${CMAKE_PROJECT_NAME}:")
......
Subproject commit 1500e036d6a4628ccbaaa22e76f8994d81595bc9
Subproject commit 24ccfc359d657538b03dd9a09bd0aff03364dbdc
......@@ -24,7 +24,8 @@ RUN dnf -y install \
graphviz \
pandoc \
python3-pip \
pkg-config
pkg-config \
gsl-devel
# Dependencies
RUN dnf --refresh -y install \
......
......@@ -29,6 +29,11 @@ if(WITH_SUNDIALS)
list(APPEND LIBRARIES ${SUNDIALS_LIBRARIES})
endif()
if(WITH_GSL)
list(APPEND INCLUDE_DIRS ${GSL_INCLUDE_DIRS})
list(APPEND LIBRARIES ${GSL_LIBRARIES})
endif()
if(WITH_PYTHON)
list(APPEND INCLUDE_DIRS ${PYTHON_INCLUDE_DIRS})
list(APPEND LIBRARIES ${PYTHON_LIBRARIES})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment