cosmotool/sample/CMakeLists.txt

127 lines
4.1 KiB
CMake
Raw Normal View History

2018-03-19 23:17:38 +01:00
SET(tolink ${CosmoTool_local} ${CosmoTool_LIBS} ${GSL_LIBRARIES} ${DL_LIBRARY})
include_directories(${CMAKE_SOURCE_DIR}/src)
2015-04-07 14:45:38 +02:00
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)
2010-09-12 21:36:37 +02:00
IF(SHARP_INCLUDE_PATH)
include_directories(BEFORE ${SHARP_INCLUDE_PATH})
ENDIF(SHARP_INCLUDE_PATH)
2010-09-12 21:36:37 +02:00
add_executable(testBQueue testBQueue.cpp)
target_link_libraries(testBQueue ${tolink})
add_executable(testInterpolate testInterpolate.cpp)
target_link_libraries(testInterpolate ${tolink})
2010-09-15 20:51:18 +02:00
add_executable(testkd testkd.cpp)
target_link_libraries(testkd ${tolink})
add_executable(testkd2 testkd2.cpp)
target_link_libraries(testkd2 ${tolink})
2013-03-06 04:32:11 +01:00
add_executable(testkd3 testkd3.cpp)
target_link_libraries(testkd3 ${tolink})
2010-09-15 20:51:18 +02:00
add_executable(testDelaunay testDelaunay.cpp)
target_link_libraries(testDelaunay ${tolink})
2011-02-11 04:07:24 +01:00
add_executable(testNewton testNewton.cpp)
2011-06-06 16:09:39 +02:00
target_link_libraries(testNewton ${tolink})
2012-05-19 00:16:13 +02:00
add_executable(testPool testPool.cpp)
target_link_libraries(testPool ${tolink})
2011-06-06 16:09:39 +02:00
if (HDF5_FOUND)
2015-10-22 13:20:33 +02:00
include_directories(${HDF5_INCLUDE_DIR})
2015-04-27 17:28:13 +02:00
2014-05-25 10:43:06 +02:00
add_executable(testReadFlash testReadFlash.cpp)
target_link_libraries(testReadFlash ${tolink})
2011-06-06 16:09:39 +02:00
endif (HDF5_FOUND)
add_executable(testEskow testEskow.cpp)
2012-05-28 14:54:14 +02:00
target_link_libraries(testEskow ${tolink})
add_executable(testAlgo testAlgo.cpp)
2012-09-17 23:24:04 +02:00
target_link_libraries(testAlgo ${tolink})
add_executable(testBSP testBSP.cpp)
2012-09-17 23:24:27 +02:00
target_link_libraries(testBSP ${tolink})
if (FFTW3_FOUND AND FFTW3F_FOUND AND EIGEN3_FOUND)
IF (FFTW3F_LIBRARY_FULL)
SET(FFTW3_LIB ${FFTW3F_LIBRARY_FULL})
ENDIF (FFTW3F_LIBRARY_FULL)
IF (FFTW3_LIBRARY_FULL)
SET(FFTW3_LIB ${FFTW3_LIB} ${FFTW3_LIBRARY_FULL})
ENDIF (FFTW3_LIBRARY_FULL)
2015-04-07 14:45:38 +02:00
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)
2013-03-19 14:25:45 +01:00
if (ENABLE_SHARP AND SHARP_LIBRARY AND SHARP_INCLUDE_PATH AND EIGEN3_FOUND)
include_directories(${SHARP_INCLUDE_PATH})
add_executable(test_healpix_calls test_healpix_calls.cpp)
target_link_libraries(test_healpix_calls ${tolink} ${SHARP_LIBRARIES})
if (ENABLE_OPENMP)
set_target_properties(test_healpix_calls PROPERTIES COMPILE_FLAGS "${OpenMP_CXX_FLAGS}" LINK_FLAGS "${OpenMP_CXX_FLAGS}")
endif()
2013-03-07 23:24:09 +01:00
add_dependencies(test_healpix_calls sharp)
2013-03-19 14:25:45 +01:00
endif (ENABLE_SHARP AND SHARP_LIBRARY AND SHARP_INCLUDE_PATH AND EIGEN3_FOUND)
add_executable(test_cosmopower test_cosmopower.cpp)
target_link_libraries(test_cosmopower ${tolink})
if (Boost_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
2015-04-07 14:45:38 +02:00
IF (YORICK_SUPPORT)
add_executable(testSmooth testSmooth.cpp)
target_link_libraries(testSmooth ${tolink})
2015-04-07 14:45:38 +02:00
ENDIF (YORICK_SUPPORT)
2016-11-26 21:30:44 +01:00
if (HDF5_FOUND)
add_executable(simple3DFilter simple3DFilter.cpp)
2021-08-19 13:48:10 +02:00
target_link_libraries(simple3DFilter ${tolink} ${MPI_C_LIBRARIES})
2018-03-31 12:06:59 +02:00
add_executable(simpleDistanceFilter simpleDistanceFilter.cpp)
target_link_libraries(simpleDistanceFilter ${tolink})
if (NOT COSMOTOOL_PYTHON_PACKAGING)
install(TARGETS simple3DFilter simpleDistanceFilter
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)
endif()
2018-01-05 15:40:06 +01:00
2016-11-26 21:30:44 +01:00
add_executable(gadgetToArray gadgetToArray.cpp)
target_link_libraries(gadgetToArray ${tolink})
2021-08-19 13:48:10 +02:00
add_executable(testHDF5 testHDF5.cpp)
target_link_libraries(testHDF5 ${tolink})
add_executable(graficToDensity graficToDensity.cpp)
target_link_libraries(graficToDensity ${tolink})
2019-01-31 16:02:18 +01:00
if (all_deps)
message(STATUS "Deps = ${all_deps}")
add_dependencies(gadgetToArray ${all_deps})
add_dependencies(testHDF5 ${all_deps})
add_dependencies(graficToDensity ${all_deps})
endif()
2016-11-26 21:30:44 +01:00
endif()
2020-10-03 20:17:07 +02:00
add_executable(test_special test_special.cpp)
target_link_libraries(test_special ${tolink})
endif (Boost_FOUND)
2015-04-07 14:45:38 +02:00
IF (ENABLE_OPENMP AND YORICK_SUPPORT)
add_executable(gadgetToDensity gadgetToDensity.cpp)
target_link_libraries(gadgetToDensity ${tolink})
2015-04-07 14:45:38 +02:00
ENDIF (ENABLE_OPENMP AND YORICK_SUPPORT)