Debian Codegraph @

src/Persistent_cohomology/example/CMakeLists.txt

raw
1 add_executable_with_targets(plain_homology plain_homology.cpp TBB::tbb)
2 add_test(NAME Persistent_cohomology_example_plain_homology COMMAND $<TARGET_FILE:plain_homology>)
3
4 add_executable_with_targets(persistence_from_simple_simplex_tree persistence_from_simple_simplex_tree.cpp TBB::tbb)
5 add_test(NAME Persistent_cohomology_example_from_simple_simplex_tree COMMAND $<TARGET_FILE:persistence_from_simple_simplex_tree>
6 "2" "0")
7
8 add_executable_with_targets(rips_persistence_step_by_step rips_persistence_step_by_step.cpp Boost::program_options TBB::tbb)
9 add_executable_with_targets(rips_persistence_via_boundary_matrix rips_persistence_via_boundary_matrix.cpp Boost::program_options TBB::tbb)
10 add_executable_with_targets(persistence_from_file persistence_from_file.cpp Boost::program_options TBB::tbb)
11 if(TARGET Boost::program_options)
12 add_test(NAME Persistent_cohomology_example_from_rips_step_by_step_on_tore_3D COMMAND $<TARGET_FILE:rips_persistence_step_by_step>
13 "${CMAKE_SOURCE_DIR}/data/points/tore3D_1307.off" "-r" "0.25" "-m" "0.5" "-d" "3" "-p" "3")
14
15 add_test(NAME Persistent_cohomology_example_via_boundary_matrix COMMAND $<TARGET_FILE:rips_persistence_via_boundary_matrix>
16 "${CMAKE_SOURCE_DIR}/data/points/Kl.off" "-r" "0.16" "-d" "3" "-p" "3" "-m" "100")
17
18 add_test(NAME Persistent_cohomology_example_from_file_3_2_0 COMMAND $<TARGET_FILE:persistence_from_file>
19 "${CMAKE_SOURCE_DIR}/data/filtered_simplicial_complex/Klein_bottle_complex.fsc" "-p" "2" "-m" "0")
20 add_test(NAME Persistent_cohomology_example_from_file_3_3_100 COMMAND $<TARGET_FILE:persistence_from_file>
21 "${CMAKE_SOURCE_DIR}/data/filtered_simplicial_complex/Klein_bottle_complex.fsc" "-p" "3" "-m" "100")
22 endif()
23
24 if(GMP_FOUND)
25 if(GMPXX_FOUND)
26 if(TARGET Boost::program_options)
27 add_executable(rips_multifield_persistence rips_multifield_persistence.cpp )
28 target_link_libraries(rips_multifield_persistence
29 Boost::program_options ${GMPXX_LIBRARIES} ${GMP_LIBRARIES})
30 if(TARGET TBB::tbb)
31 target_link_libraries(rips_multifield_persistence TBB::tbb)
32 endif()
33 add_test(NAME Persistent_cohomology_example_multifield_2_71 COMMAND $<TARGET_FILE:rips_multifield_persistence>
34 "${CMAKE_SOURCE_DIR}/data/points/tore3D_1307.off" "-r" "0.25" "-m" "0.5" "-d" "3" "-p" "2" "-q" "71")
35 endif()
36 endif(GMPXX_FOUND)
37 endif(GMP_FOUND)
38
39 add_executable_with_targets(custom_persistence_sort custom_persistence_sort.cpp CGAL::CGAL Eigen3::Eigen TBB::tbb)
40 if(TARGET CGAL::CGAL AND TARGET Eigen3::Eigen)
41 add_test(NAME Persistent_cohomology_example_custom_persistence_sort COMMAND $<TARGET_FILE:custom_persistence_sort>)
42 endif()
43
44 add_executable(persistence_on_a_line persistence_on_a_line.cpp)
45 add_test(NAME persistence_on_a_line COMMAND $<TARGET_FILE:persistence_on_a_line>)