diff options
author | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2020-09-28 18:01:58 +0200 |
---|---|---|
committer | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2020-09-28 18:01:58 +0200 |
commit | bd20b93ecd5949ac62fef336bce0a508d168fcdc (patch) | |
tree | b1240674849a3c14fd6994a49b45d05e23b56fd1 /src/Cech_complex/example/CMakeLists.txt | |
parent | c6619e0207abf0fb5198b66a8d8f00f975c3da84 (diff) | |
parent | a304049bdcfb03aa848d8049923ab796e0761b56 (diff) |
Merge optional boost from master
Diffstat (limited to 'src/Cech_complex/example/CMakeLists.txt')
-rw-r--r-- | src/Cech_complex/example/CMakeLists.txt | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/Cech_complex/example/CMakeLists.txt b/src/Cech_complex/example/CMakeLists.txt index 98757988..1b08c7cb 100644 --- a/src/Cech_complex/example/CMakeLists.txt +++ b/src/Cech_complex/example/CMakeLists.txt @@ -1,13 +1,14 @@ -cmake_minimum_required(VERSION 2.6) project(Cech_complex_examples) -add_executable ( Cech_complex_example_step_by_step cech_complex_step_by_step.cpp ) -target_link_libraries(Cech_complex_example_step_by_step Boost::program_options) -if (TBB_FOUND) - target_link_libraries(Cech_complex_example_step_by_step ${TBB_LIBRARIES}) +if (TARGET Boost::program_options) + add_executable ( Cech_complex_example_step_by_step cech_complex_step_by_step.cpp ) + target_link_libraries(Cech_complex_example_step_by_step Boost::program_options) + if (TBB_FOUND) + target_link_libraries(Cech_complex_example_step_by_step ${TBB_LIBRARIES}) + endif() + add_test(NAME Cech_complex_utility_from_rips_on_tore_3D COMMAND $<TARGET_FILE:Cech_complex_example_step_by_step> + "${CMAKE_SOURCE_DIR}/data/points/tore3D_300.off" "-r" "0.25" "-d" "3") endif() -add_test(NAME Cech_complex_utility_from_rips_on_tore_3D COMMAND $<TARGET_FILE:Cech_complex_example_step_by_step> - "${CMAKE_SOURCE_DIR}/data/points/tore3D_300.off" "-r" "0.25" "-d" "3") add_executable ( Cech_complex_example_from_points cech_complex_example_from_points.cpp) if (TBB_FOUND) |