diff options
author | Vincent Rouvreau <10407034+VincentRouvreau@users.noreply.github.com> | 2020-09-28 13:31:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-28 13:31:37 +0200 |
commit | a304049bdcfb03aa848d8049923ab796e0761b56 (patch) | |
tree | a386998867179699c21a77479b456303a438cd36 /src/Cech_complex/benchmark/CMakeLists.txt | |
parent | 6e14ef1f31e09f3875316440303450ff870d9881 (diff) | |
parent | 58d79c972198938c6f3655a40540903e08242b36 (diff) |
Merge pull request #391 from VincentRouvreau/optional_boost_libraries
Optional boost libraries
Diffstat (limited to 'src/Cech_complex/benchmark/CMakeLists.txt')
-rw-r--r-- | src/Cech_complex/benchmark/CMakeLists.txt | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/Cech_complex/benchmark/CMakeLists.txt b/src/Cech_complex/benchmark/CMakeLists.txt index c04bca53..bc54c0f3 100644 --- a/src/Cech_complex/benchmark/CMakeLists.txt +++ b/src/Cech_complex/benchmark/CMakeLists.txt @@ -1,12 +1,13 @@ -cmake_minimum_required(VERSION 2.6) project(Cech_complex_benchmark) # Do not forget to copy test files in current binary dir file(COPY "${CMAKE_SOURCE_DIR}/data/points/tore3D_1307.off" DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/) -add_executable(cech_complex_benchmark cech_complex_benchmark.cpp) -target_link_libraries(cech_complex_benchmark Boost::filesystem) - -if (TBB_FOUND) - target_link_libraries(cech_complex_benchmark ${TBB_LIBRARIES}) -endif() +if(TARGET Boost::filesystem) + add_executable(cech_complex_benchmark cech_complex_benchmark.cpp) + target_link_libraries(cech_complex_benchmark Boost::filesystem) + + if (TBB_FOUND) + target_link_libraries(cech_complex_benchmark ${TBB_LIBRARIES}) + endif() +endif()
\ No newline at end of file |