diff options
author | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2020-09-08 16:43:36 +0200 |
---|---|---|
committer | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2020-09-08 16:43:36 +0200 |
commit | 05c9c0060ec8ff4cbf8619ff74724c2eea426d84 (patch) | |
tree | 4af40fbd4836e0cb951017ae6bf686c714efcde3 /src/Persistent_cohomology/benchmark/CMakeLists.txt | |
parent | 6e14ef1f31e09f3875316440303450ff870d9881 (diff) |
CMake > 3.5 to use Boost targets. Compile only what is available from boost targets
Diffstat (limited to 'src/Persistent_cohomology/benchmark/CMakeLists.txt')
-rw-r--r-- | src/Persistent_cohomology/benchmark/CMakeLists.txt | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/Persistent_cohomology/benchmark/CMakeLists.txt b/src/Persistent_cohomology/benchmark/CMakeLists.txt index f38cc543..ad8dc84b 100644 --- a/src/Persistent_cohomology/benchmark/CMakeLists.txt +++ b/src/Persistent_cohomology/benchmark/CMakeLists.txt @@ -2,11 +2,13 @@ project(Persistent_cohomology_benchmark) if(GMP_FOUND) if(GMPXX_FOUND) - add_executable ( performance_rips_persistence EXCLUDE_FROM_ALL performance_rips_persistence.cpp ) - target_link_libraries(performance_rips_persistence Boost::program_options ${GMPXX_LIBRARIES} ${GMP_LIBRARIES}) - if (TBB_FOUND) - target_link_libraries(performance_rips_persistence ${TBB_LIBRARIES}) - endif(TBB_FOUND) - file(COPY "${CMAKE_SOURCE_DIR}/data/points/Kl.off" DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/) + if (TARGET Boost::program_options) + add_executable ( performance_rips_persistence EXCLUDE_FROM_ALL performance_rips_persistence.cpp ) + target_link_libraries(performance_rips_persistence Boost::program_options ${GMPXX_LIBRARIES} ${GMP_LIBRARIES}) + if (TBB_FOUND) + target_link_libraries(performance_rips_persistence ${TBB_LIBRARIES}) + endif(TBB_FOUND) + file(COPY "${CMAKE_SOURCE_DIR}/data/points/Kl.off" DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/) + endif() endif(GMPXX_FOUND) endif(GMP_FOUND) |