Allow to opt-out from yorick classes
This commit is contained in:
parent
f7d6aa9bd3
commit
e2ef019ab5
3 changed files with 40 additions and 25 deletions
|
@ -1,7 +1,9 @@
|
|||
SET(tolink ${GSL_LIBRARIES} ${CosmoTool_local} ${CosmoTool_LIBS})
|
||||
include_directories(${CMAKE_SOURCE_DIR}/src)
|
||||
include_directories(${FFTW3_INCLUDE_DIRS}
|
||||
${EIGEN3_INCLUDE_DIRS} ${NETCDF_INCLUDE_PATH} ${GSL_INCLUDE_PATH})
|
||||
include_directories(${FFTW3_INCLUDE_DIRS} ${EIGEN3_INCLUDE_DIRS} ${GSL_INCLUDE_PATH})
|
||||
if(YORICK_SUPPORT)
|
||||
include_directories(${NETCDF_INCLUDE_PATH})
|
||||
endif(YORICK_SUPPORT)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/sample)
|
||||
|
||||
IF(SHARP_INCLUDE_PATH)
|
||||
|
@ -63,8 +65,10 @@ if (FFTW3_FOUND AND FFTW3F_FOUND AND EIGEN3_FOUND)
|
|||
IF (FFTW3_LIBRARY_FULL)
|
||||
SET(FFTW3_LIB ${FFTW3_LIB} ${FFTW3_LIBRARY_FULL})
|
||||
ENDIF (FFTW3_LIBRARY_FULL)
|
||||
add_executable(test_fft_calls test_fft_calls.cpp)
|
||||
target_link_libraries(test_fft_calls ${tolink} ${FFTW3_LIB})
|
||||
IF(YORICK_SUPPORT)
|
||||
add_executable(test_fft_calls test_fft_calls.cpp)
|
||||
target_link_libraries(test_fft_calls ${tolink} ${FFTW3_LIB})
|
||||
ENDIF(YORICK_SUPPORT)
|
||||
endif (FFTW3_FOUND AND FFTW3F_FOUND AND EIGEN3_FOUND)
|
||||
|
||||
if (ENABLE_SHARP AND SHARP_LIBRARY AND SHARP_INCLUDE_PATH AND EIGEN3_FOUND)
|
||||
|
@ -81,15 +85,17 @@ target_link_libraries(test_cosmopower ${tolink})
|
|||
if (Boost_FOUND)
|
||||
include_directories(${Boost_INCLUDE_DIRS})
|
||||
|
||||
add_executable(testSmooth testSmooth.cpp)
|
||||
target_link_libraries(testSmooth ${tolink})
|
||||
IF (YORICK_SUPPORT)
|
||||
add_executable(testSmooth testSmooth.cpp)
|
||||
target_link_libraries(testSmooth ${tolink})
|
||||
|
||||
add_executable(simple3DFilter simple3DFilter.cpp)
|
||||
target_link_libraries(simple3DFilter ${tolink})
|
||||
add_executable(simple3DFilter simple3DFilter.cpp)
|
||||
target_link_libraries(simple3DFilter ${tolink})
|
||||
ENDIF (YORICK_SUPPORT)
|
||||
endif (Boost_FOUND)
|
||||
|
||||
IF (ENABLE_OPENMP)
|
||||
IF (ENABLE_OPENMP AND YORICK_SUPPORT)
|
||||
add_executable(gadgetToDensity gadgetToDensity.cpp)
|
||||
target_link_libraries(gadgetToDensity ${tolink})
|
||||
ENDIF (ENABLE_OPENMP)
|
||||
ENDIF (ENABLE_OPENMP AND YORICK_SUPPORT)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue