diff options
author | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2017-12-06 09:13:33 +0000 |
---|---|---|
committer | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2017-12-06 09:13:33 +0000 |
commit | 223b9334d8e71be1ef1e0279c128201d9faa18f7 (patch) | |
tree | 1c70e5f83a8dae753f923af9db18a2dc19bd9795 /src/Persistence_representations/utilities/persistence_vectors/CMakeLists.txt | |
parent | 75d2050ff37aa56fd4c1473bb6ccd8e533b55558 (diff) | |
parent | 11c6ce22ef17bb41f484d5f5aeb1acb34b9c28ea (diff) |
Merge C++ version of persistence representation
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/persistence_representation_integration_bis@3043 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: 6421c7cbe670fad1a8900ccc0ea6ff32297dd5e7
Diffstat (limited to 'src/Persistence_representations/utilities/persistence_vectors/CMakeLists.txt')
-rw-r--r-- | src/Persistence_representations/utilities/persistence_vectors/CMakeLists.txt | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/Persistence_representations/utilities/persistence_vectors/CMakeLists.txt b/src/Persistence_representations/utilities/persistence_vectors/CMakeLists.txt new file mode 100644 index 00000000..e3d1013b --- /dev/null +++ b/src/Persistence_representations/utilities/persistence_vectors/CMakeLists.txt @@ -0,0 +1,38 @@ +cmake_minimum_required(VERSION 2.6) +project(Persistence_vectors_utilities) + +file(COPY "${CMAKE_SOURCE_DIR}/data/persistence_diagram/simple_diagram.txt" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/") + +add_executable ( create_persistence_vectors create_persistence_vectors.cpp ) +target_link_libraries(create_persistence_vectors ${Boost_SYSTEM_LIBRARY}) + +# Will create simple_diagram.txt.vect +add_test(NAME create_persistence_vectors COMMAND $<TARGET_FILE:create_persistence_vectors> + "-1" "${CMAKE_CURRENT_BINARY_DIR}/simple_diagram.txt") + +add_executable ( average_persistence_vectors average_persistence_vectors.cpp ) +target_link_libraries(average_persistence_vectors ${Boost_SYSTEM_LIBRARY}) + +add_test(NAME average_persistence_vectors COMMAND $<TARGET_FILE:average_persistence_vectors> + "${CMAKE_CURRENT_BINARY_DIR}/simple_diagram.txt.vect" + "${CMAKE_CURRENT_BINARY_DIR}/simple_diagram.txt.vect") + +add_executable ( compute_distance_of_persistence_vectors compute_distance_of_persistence_vectors.cpp ) +target_link_libraries(compute_distance_of_persistence_vectors ${Boost_SYSTEM_LIBRARY}) + +add_test(NAME compute_distance_of_persistence_vectors COMMAND $<TARGET_FILE:compute_distance_of_persistence_vectors> + "-1" "${CMAKE_CURRENT_BINARY_DIR}/simple_diagram.txt.vect" + "${CMAKE_CURRENT_BINARY_DIR}/simple_diagram.txt.vect") + +add_executable ( compute_scalar_product_of_persistence_vectors compute_scalar_product_of_persistence_vectors.cpp ) +target_link_libraries(compute_scalar_product_of_persistence_vectors ${Boost_SYSTEM_LIBRARY}) + +add_test(NAME compute_scalar_product_of_persistence_vectors COMMAND $<TARGET_FILE:compute_scalar_product_of_persistence_vectors> + "${CMAKE_CURRENT_BINARY_DIR}/simple_diagram.txt.vect" + "${CMAKE_CURRENT_BINARY_DIR}/simple_diagram.txt.vect") + +add_executable ( plot_persistence_vectors plot_persistence_vectors.cpp ) +target_link_libraries(plot_persistence_vectors ${Boost_SYSTEM_LIBRARY}) + +add_test(NAME plot_persistence_vectors COMMAND $<TARGET_FILE:plot_persistence_vectors> + "${CMAKE_CURRENT_BINARY_DIR}/simple_diagram.txt.vect") |