1
0
Fork 0
mirror of https://github.com/gwm17/catima.git synced 2024-11-23 02:38:51 -05:00
catima/tests/CMakeLists.txt

20 lines
665 B
CMake
Raw Normal View History

2018-04-18 09:19:03 -04:00
enable_testing()
2017-07-25 12:19:11 -04:00
add_definitions(-Dlest_FEATURE_COLOURISE=1)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/tests)
2018-04-22 19:39:10 -04:00
set(CATIMA_TESTS test_calculations test_generated test_storage test_structures test_dedx_range test_abundances)
2017-07-25 12:19:11 -04:00
foreach(entry ${CATIMA_TESTS})
add_executable(${entry} ${entry}.cpp)
target_link_libraries(${entry} catima)
2018-04-18 09:19:03 -04:00
add_test(${entry} ${PROJECT_BINARY_DIR}/tests/${entry})
2017-07-25 12:19:11 -04:00
endforeach(entry in ${CATIMA_TESTS})
set(C_TESTS test_c)
MESSAGE( STATUS "CMAKE_C_COMPILER: " ${CMAKE_C_COMPILER} )
foreach(entry ${C_TESTS})
add_executable(${entry} ${entry}.c)
target_link_libraries(${entry} catima)
2018-04-18 09:19:03 -04:00
endforeach(entry in ${C_TESTS})