summaryrefslogtreecommitdiff
path: root/src/Cech_complex/utilities/CMakeLists.txt
blob: e80a698e20adea367a925a6f6408b7545c828525 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
if (NOT CGAL_WITH_EIGEN3_VERSION VERSION_LESS 5.0.1)
  project(Cech_complex_utilities)

  if (TARGET Boost::program_options)
    add_executable(cech_persistence cech_persistence.cpp)
    target_link_libraries(cech_persistence Boost::program_options)

    if (TBB_FOUND)
      target_link_libraries(cech_persistence ${TBB_LIBRARIES})
    endif()

    add_test(NAME Cech_complex_utility_from_rips_on_tore_3D COMMAND $<TARGET_FILE:cech_persistence>
        "${CMAKE_SOURCE_DIR}/data/points/tore3D_300.off" "-r" "0.25" "-m" "0.5" "-d" "3" "-p" "3")

    install(TARGETS cech_persistence DESTINATION bin)
  endif()
endif()