2014-05-25 10:43:06 +02:00
|
|
|
SET(tolink ${GSL_LIBRARIES} ${CosmoTool_local} ${CosmoTool_LIBS})
|
2014-05-20 09:43:00 +02:00
|
|
|
include_directories(${CMAKE_SOURCE_DIR}/src)
|
|
|
|
include_directories(${FFTW3_INCLUDE_DIRS}
|
|
|
|
${EIGEN3_INCLUDE_DIRS} ${NETCDF_INCLUDE_PATH} ${GSL_INCLUDE_PATH})
|
2014-05-30 17:11:49 +02:00
|
|
|
include_directories(${CMAKE_SOURCE_DIR}/sample)
|
2010-09-12 21:36:37 +02:00
|
|
|
|
2012-11-10 09:02:08 -05: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-05 22:32:11 -05: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-10 22:07:24 -05:00
|
|
|
|
|
|
|
add_executable(testNewton testNewton.cpp)
|
2011-06-06 10:09:39 -04:00
|
|
|
target_link_libraries(testNewton ${tolink})
|
|
|
|
|
2012-05-18 18:16:13 -04:00
|
|
|
add_executable(testPool testPool.cpp)
|
|
|
|
target_link_libraries(testPool ${tolink})
|
|
|
|
|
2011-06-06 10:09:39 -04:00
|
|
|
if (HDF5_FOUND)
|
2014-05-25 10:43:06 +02:00
|
|
|
add_executable(testReadFlash testReadFlash.cpp)
|
2014-05-20 09:25:32 +02:00
|
|
|
target_link_libraries(testReadFlash ${tolink})
|
2014-05-20 16:16:46 +02:00
|
|
|
|
|
|
|
add_executable(testHDF5 testHDF5.cpp)
|
|
|
|
target_link_libraries(testHDF5 ${tolink})
|
2014-05-20 16:27:41 +02:00
|
|
|
|
|
|
|
add_executable(gadgetToArray gadgetToArray.cpp)
|
|
|
|
target_link_libraries(gadgetToArray ${tolink})
|
|
|
|
|
2014-06-02 10:34:20 +02:00
|
|
|
add_executable(graficToDensity graficToDensity.cpp)
|
|
|
|
target_link_libraries(graficToDensity ${tolink})
|
2011-06-06 10:09:39 -04:00
|
|
|
endif (HDF5_FOUND)
|
2011-12-13 17:48:37 -05:00
|
|
|
|
|
|
|
|
|
|
|
add_executable(testEskow testEskow.cpp)
|
2012-05-28 08:54:14 -04:00
|
|
|
target_link_libraries(testEskow ${tolink})
|
|
|
|
|
|
|
|
add_executable(testAlgo testAlgo.cpp)
|
2012-09-17 17:24:04 -04:00
|
|
|
target_link_libraries(testAlgo ${tolink})
|
|
|
|
|
|
|
|
add_executable(testBSP testBSP.cpp)
|
2012-09-17 17:24:27 -04:00
|
|
|
target_link_libraries(testBSP ${tolink})
|
2012-10-06 12:56:33 -04:00
|
|
|
|
2012-11-11 14:30:45 -05:00
|
|
|
if (FFTW3_FOUND AND FFTW3F_FOUND AND EIGEN3_FOUND)
|
2014-02-27 15:30:21 +01:00
|
|
|
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)
|
2012-11-10 09:02:08 -05:00
|
|
|
add_executable(test_fft_calls test_fft_calls.cpp)
|
2014-02-27 15:30:21 +01:00
|
|
|
target_link_libraries(test_fft_calls ${tolink} ${FFTW3_LIB})
|
2012-11-11 15:46:03 -05:00
|
|
|
endif (FFTW3_FOUND AND FFTW3F_FOUND AND EIGEN3_FOUND)
|
2012-11-10 09:02:08 -05:00
|
|
|
|
2013-03-19 09:25:45 -04:00
|
|
|
if (ENABLE_SHARP AND SHARP_LIBRARY AND SHARP_INCLUDE_PATH AND EIGEN3_FOUND)
|
2012-11-10 12:22:37 -05:00
|
|
|
include_directories(${SHARP_INCLUDE_PATH})
|
|
|
|
add_executable(test_healpix_calls test_healpix_calls.cpp)
|
|
|
|
target_link_libraries(test_healpix_calls ${tolink} ${SHARP_LIBRARIES})
|
2014-05-05 12:07:55 +02:00
|
|
|
set_target_properties(test_healpix_calls PROPERTIES COMPILE_FLAGS "${OpenMP_CXX_FLAGS}" LINK_FLAGS "${OpenMP_CXX_FLAGS}")
|
2013-03-07 17:24:09 -05:00
|
|
|
add_dependencies(test_healpix_calls sharp)
|
2013-03-19 09:25:45 -04:00
|
|
|
endif (ENABLE_SHARP AND SHARP_LIBRARY AND SHARP_INCLUDE_PATH AND EIGEN3_FOUND)
|
2013-02-19 11:15:46 -05:00
|
|
|
|
|
|
|
add_executable(test_cosmopower test_cosmopower.cpp)
|
|
|
|
target_link_libraries(test_cosmopower ${tolink})
|
|
|
|
|
2014-05-20 09:43:00 +02:00
|
|
|
if (Boost_FOUND)
|
|
|
|
include_directories(${Boost_INCLUDE_DIRS})
|
|
|
|
|
|
|
|
add_executable(testSmooth testSmooth.cpp)
|
|
|
|
target_link_libraries(testSmooth ${tolink})
|
2014-05-20 09:25:32 +02:00
|
|
|
|
2014-05-20 09:43:00 +02:00
|
|
|
add_executable(simple3DFilter simple3DFilter.cpp)
|
|
|
|
target_link_libraries(simple3DFilter ${tolink})
|
|
|
|
endif (Boost_FOUND)
|
2014-05-20 11:19:45 +02:00
|
|
|
|
2014-06-03 09:51:26 +02:00
|
|
|
IF (ENABLE_OPENMP)
|
|
|
|
add_executable(gadgetToDensity gadgetToDensity.cpp)
|
|
|
|
target_link_libraries(gadgetToDensity ${tolink})
|
|
|
|
ENDIF (ENABLE_OPENMP)
|
2014-06-02 10:34:20 +02:00
|
|
|
|