mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-12 02:53:05 +00:00
Provide the just-built cython to cosmotool. Forced to reorganize the order of the call to ExternalProject
This commit is contained in:
parent
63c7757662
commit
b5e3086801
5 changed files with 60 additions and 32 deletions
31
external/external_cosmotool.cmake
vendored
Normal file
31
external/external_cosmotool.cmake
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
##################
|
||||
# Build CosmoTool
|
||||
##################
|
||||
|
||||
|
||||
ExternalProject_Add(cosmotool
|
||||
DEPENDS ${cosmotool_DEPS}
|
||||
PREFIX ${BUILD_PREFIX}/cosmotool-prefix
|
||||
SOURCE_DIR ${CMAKE_SOURCE_DIR}/external/cosmotool
|
||||
CMAKE_ARGS
|
||||
-DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
|
||||
-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
|
||||
-DHDF5_DIR=${HDF5_ROOTDIR}
|
||||
-DHDF5_ROOTDIR=${HDF5_ROOTDIR}
|
||||
-DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/ext_build/cosmotool
|
||||
-DNETCDF_INCLUDE_PATH=${NETCDF_INCLUDE_PATH}
|
||||
-DNETCDFCPP_INCLUDE_PATH=${NETCDFCPP_INCLUDE_PATH}
|
||||
-DGSL_INCLUDE_PATH=${GSL_INCLUDE_PATH}
|
||||
-DGSL_LIBRARY=${GSL_LIBRARY}
|
||||
-DGSLCBLAS_LIBRARY=${GSLCBLAS_LIBRARY}
|
||||
-DNETCDF_LIBRARY=${NETCDF_LIBRARY}
|
||||
-DNETCDFCPP_LIBRARY=${NETCDFCPP_LIBRARY}
|
||||
-DENABLE_SHARP=OFF
|
||||
-DBoost_INCLUDE_DIR=${Boost_INCLUDE_DIRS}
|
||||
${CYTHON_OPTION}
|
||||
|
||||
)
|
||||
SET(COSMOTOOL_LIBRARY ${CMAKE_BINARY_DIR}/ext_build/cosmotool/lib/libCosmoTool.a)
|
||||
set(COSMOTOOL_INCLUDE_PATH ${CMAKE_BINARY_DIR}/ext_build/cosmotool/include)
|
||||
|
||||
include_directories(${COSMOTOOL_INCLUDE_PATH} )
|
Loading…
Add table
Add a link
Reference in a new issue