diff options
Diffstat (limited to 'src/Cech_complex/test/CMakeLists.txt')
-rw-r--r-- | src/Cech_complex/test/CMakeLists.txt | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/Cech_complex/test/CMakeLists.txt b/src/Cech_complex/test/CMakeLists.txt index db510af3..2d736f27 100644 --- a/src/Cech_complex/test/CMakeLists.txt +++ b/src/Cech_complex/test/CMakeLists.txt @@ -1,14 +1,14 @@ -cmake_minimum_required(VERSION 2.6) -project(Cech_complex_tests) +if (NOT CGAL_WITH_EIGEN3_VERSION VERSION_LESS 5.0.1) + include(GUDHI_boost_test) -include(GUDHI_boost_test) + add_executable ( Cech_complex_test_unit test_cech_complex.cpp ) + if (TBB_FOUND) + target_link_libraries(Cech_complex_test_unit ${TBB_LIBRARIES}) + endif() -add_executable ( Cech_complex_test_unit test_cech_complex.cpp ) -if (TBB_FOUND) - target_link_libraries(Cech_complex_test_unit ${TBB_LIBRARIES}) -endif() + # Do not forget to copy test files in current binary dir + file(COPY "${CMAKE_SOURCE_DIR}/data/points/alphacomplexdoc.off" DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/) -# Do not forget to copy test files in current binary dir -file(COPY "${CMAKE_SOURCE_DIR}/data/points/alphacomplexdoc.off" DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/) + gudhi_add_boost_test(Cech_complex_test_unit) -gudhi_add_boost_test(Cech_complex_test_unit) +endif() |