diff options
author | Hind-M <hind.montassif@gmail.com> | 2021-09-30 16:13:39 +0200 |
---|---|---|
committer | Hind-M <hind.montassif@gmail.com> | 2021-09-30 16:13:39 +0200 |
commit | 65b32d167810a107cf807572f84cef082c76067d (patch) | |
tree | b1b526c798717dda22dacfbfbba54708fe808bd2 /src/Cech_complex/benchmark/CMakeLists.txt | |
parent | 767d9fca5da2d3dd9698a5c27e9bedc159271f67 (diff) |
Add Cech tests, examples, utilities and benchmark to the build only if CGAL is present
Diffstat (limited to 'src/Cech_complex/benchmark/CMakeLists.txt')
-rw-r--r-- | src/Cech_complex/benchmark/CMakeLists.txt | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/Cech_complex/benchmark/CMakeLists.txt b/src/Cech_complex/benchmark/CMakeLists.txt index bc54c0f3..ccd1b324 100644 --- a/src/Cech_complex/benchmark/CMakeLists.txt +++ b/src/Cech_complex/benchmark/CMakeLists.txt @@ -1,13 +1,15 @@ 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}/) +if (CGAL_FOUND) + # 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}/) -if(TARGET Boost::filesystem) - add_executable(cech_complex_benchmark cech_complex_benchmark.cpp) - target_link_libraries(cech_complex_benchmark Boost::filesystem) + 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}) + if (TBB_FOUND) + target_link_libraries(cech_complex_benchmark ${TBB_LIBRARIES}) + endif() endif() -endif()
\ No newline at end of file +endif() |