diff options
author | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2017-12-06 10:21:48 +0000 |
---|---|---|
committer | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2017-12-06 10:21:48 +0000 |
commit | 3b1f38e542955b807ebeef5eb884f12fe04ad82e (patch) | |
tree | 1c70e5f83a8dae753f923af9db18a2dc19bd9795 /src/Persistence_representations/utilities/persistence_intervals/CMakeLists.txt | |
parent | 9c0ff374057baf19d3ea1147553b68f5293074ac (diff) | |
parent | 223b9334d8e71be1ef1e0279c128201d9faa18f7 (diff) |
Merge C++ version of persistence representation
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/trunk@3044 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: c7d5d0f584b74dc0dd919e375d170e1998a9744f
Diffstat (limited to 'src/Persistence_representations/utilities/persistence_intervals/CMakeLists.txt')
-rw-r--r-- | src/Persistence_representations/utilities/persistence_intervals/CMakeLists.txt | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/Persistence_representations/utilities/persistence_intervals/CMakeLists.txt b/src/Persistence_representations/utilities/persistence_intervals/CMakeLists.txt new file mode 100644 index 00000000..105b7efb --- /dev/null +++ b/src/Persistence_representations/utilities/persistence_intervals/CMakeLists.txt @@ -0,0 +1,46 @@ +cmake_minimum_required(VERSION 2.6) +project(Persistence_representations_intervals_utilities) + +file(COPY "${CMAKE_SOURCE_DIR}/data/persistence_diagram/simple_diagram.txt" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/") + +add_executable ( plot_persistence_intervals plot_persistence_intervals.cpp ) +target_link_libraries( plot_persistence_intervals ${Boost_SYSTEM_LIBRARY}) + +add_test(NAME plot_persistence_intervals COMMAND $<TARGET_FILE:plot_persistence_intervals> + "${CMAKE_CURRENT_BINARY_DIR}/simple_diagram.txt") + +add_executable ( compute_birth_death_range_in_persistence_diagram compute_birth_death_range_in_persistence_diagram.cpp ) +target_link_libraries( compute_birth_death_range_in_persistence_diagram ${Boost_SYSTEM_LIBRARY}) + +add_test(NAME compute_birth_death_range_in_persistence_diagram COMMAND $<TARGET_FILE:compute_birth_death_range_in_persistence_diagram> + "-1" "${CMAKE_CURRENT_BINARY_DIR}/simple_diagram.txt") + +add_executable ( compute_number_of_dominant_intervals compute_number_of_dominant_intervals.cpp ) +target_link_libraries( compute_number_of_dominant_intervals ${Boost_SYSTEM_LIBRARY}) + +add_test(NAME compute_number_of_dominant_intervals COMMAND $<TARGET_FILE:compute_number_of_dominant_intervals> + "${CMAKE_CURRENT_BINARY_DIR}/simple_diagram.txt" "-1" "2") + +add_executable ( plot_histogram_of_intervals_lengths plot_histogram_of_intervals_lengths.cpp ) +target_link_libraries( plot_histogram_of_intervals_lengths ${Boost_SYSTEM_LIBRARY}) + +add_test(NAME plot_histogram_of_intervals_lengths COMMAND $<TARGET_FILE:plot_histogram_of_intervals_lengths> + "${CMAKE_CURRENT_BINARY_DIR}/simple_diagram.txt" "2") + +add_executable ( plot_persistence_Betti_numbers plot_persistence_Betti_numbers.cpp ) +target_link_libraries( plot_persistence_Betti_numbers ${Boost_SYSTEM_LIBRARY}) + +add_test(NAME plot_persistence_Betti_numbers COMMAND $<TARGET_FILE:plot_persistence_Betti_numbers> + "${CMAKE_CURRENT_BINARY_DIR}/simple_diagram.txt") + +if (NOT CGAL_WITH_EIGEN3_VERSION VERSION_LESS 4.8.1) + add_executable ( compute_bottleneck_distance compute_bottleneck_distance.cpp ) + target_link_libraries( compute_bottleneck_distance ${Boost_SYSTEM_LIBRARY}) + if (TBB_FOUND) + target_link_libraries(compute_bottleneck_distance ${TBB_LIBRARIES}) + endif(TBB_FOUND) + + add_test(NAME compute_bottleneck_distance COMMAND $<TARGET_FILE:compute_bottleneck_distance> + "${CMAKE_CURRENT_BINARY_DIR}/simple_diagram.txt" + "${CMAKE_CURRENT_BINARY_DIR}/simple_diagram.txt") +endif (NOT CGAL_WITH_EIGEN3_VERSION VERSION_LESS 4.8.1) |