-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #780 from ICB-DCM/develop
Release 0.10.10
- Loading branch information
Showing
69 changed files
with
882 additions
and
381 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,10 @@ endif(POLICY CMP0065) | |
if(POLICY CMP0077) | ||
cmake_policy(SET CMP0077 NEW) | ||
endif(POLICY CMP0077) | ||
if(POLICY CMP0074) | ||
# Use package_ROOT environment variables | ||
cmake_policy(SET CMP0074 NEW) | ||
endif(POLICY CMP0074) | ||
|
||
project(amici) | ||
|
||
|
@@ -36,6 +40,7 @@ foreach(FLAG ${MY_CXX_FLAGS}) | |
endforeach(FLAG) | ||
|
||
# find dependencies | ||
include(GNUInstallDirs) | ||
find_package(HDF5 COMPONENTS C HL CXX REQUIRED) | ||
set(HDF5_LIBRARIES ${HDF5_HL_LIBRARIES} ${HDF5_C_LIBRARIES} ${HDF5_CXX_LIBRARIES}) | ||
set(SUITESPARSE_DIR "${CMAKE_SOURCE_DIR}/ThirdParty/SuiteSparse/") | ||
|
@@ -48,7 +53,7 @@ set(SUITESPARSE_LIBRARIES | |
${SUITESPARSE_DIR}/SuiteSparse_config/libsuitesparseconfig${CMAKE_STATIC_LIBRARY_SUFFIX} | ||
) | ||
|
||
set(SUNDIALS_LIB_DIR "${CMAKE_SOURCE_DIR}/ThirdParty/sundials/build/lib") | ||
set(SUNDIALS_LIB_DIR "${CMAKE_SOURCE_DIR}/ThirdParty/sundials/build/${CMAKE_INSTALL_LIBDIR}") | ||
set(SUNDIALS_LIBRARIES | ||
${SUNDIALS_LIB_DIR}/libsundials_nvecserial${CMAKE_STATIC_LIBRARY_SUFFIX} | ||
${SUNDIALS_LIB_DIR}/libsundials_sunlinsolband${CMAKE_STATIC_LIBRARY_SUFFIX} | ||
|
@@ -83,14 +88,22 @@ set(GSL_LITE_INCLUDE_DIR "${CMAKE_SOURCE_DIR}/ThirdParty/gsl") | |
# The latter is not supported via CMake yet. | ||
set(BLAS "CBLAS" CACHE STRING "BLAS library to use") | ||
set_property(CACHE BLAS PROPERTY STRINGS "CBLAS" "MKL" "ACCELERATE") | ||
add_definitions(-DAMICI_BLAS_${BLAS}) | ||
if(${BLAS} STREQUAL "MKL") | ||
set(BLAS_INCLUDE_DIRS "" CACHE STRING "") | ||
set(BLAS_LIBRARIES -lmkl CACHE STRING "") | ||
if(${BLAS} STREQUAL "MKL" OR DEFINED ENV{MKLROOT}) | ||
if(DEFINED ENV{MKLROOT}) | ||
# This is set by Environment Modules | ||
message(STATUS "Using MKL_INCDIR and MKL_LIB from environment module") | ||
set(BLAS "MKL" CACHE STRING "BLAS library to use" FORCE) | ||
set(BLAS_INCLUDE_DIRS "$ENV{MKL_INCDIR}" CACHE STRING "" FORCE) | ||
set(BLAS_LIBRARIES "$ENV{MKL_LIB}" CACHE STRING "" FORCE) | ||
else() | ||
set(BLAS_INCLUDE_DIRS "" CACHE STRING "") | ||
set(BLAS_LIBRARIES -lmkl CACHE STRING "") | ||
endif() | ||
else() | ||
set(BLAS_INCLUDE_DIRS "" CACHE STRING "") | ||
set(BLAS_LIBRARIES -lcblas CACHE STRING "") | ||
endif() | ||
add_definitions(-DAMICI_BLAS_${BLAS}) | ||
|
||
# Add target to create version file | ||
add_custom_target( | ||
|
@@ -178,7 +191,6 @@ set(AUTHORS "Fabian Froehlich, Jan Hasenauer, Daniel Weindl and Paul Stapor") | |
set(AUTHOR_EMAIL "[email protected]") | ||
|
||
# <Export cmake configuration> | ||
include(GNUInstallDirs) | ||
install(TARGETS ${PROJECT_NAME} EXPORT AmiciTargets | ||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.