diff options
author | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2015-03-18 16:29:33 +0000 |
---|---|---|
committer | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2015-03-18 16:29:33 +0000 |
commit | 9c903ffef9029e5091a60b6872799d9a86a582bb (patch) | |
tree | df29e207667636c200b064d1b2ef5411a87fa4db /src/Alpha_shapes/test/CMakeLists.txt | |
parent | 480a4df6fc9e3d1086039735f1625fbc2d5dca0e (diff) | |
parent | d3d53b79217afc5df0deecb16f7d2f8b52629a99 (diff) |
Add alpha shapes functionnality
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/alphashapes@488 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: ef821bf7026520540b5869e16c08c290d3ed9477
Diffstat (limited to 'src/Alpha_shapes/test/CMakeLists.txt')
-rw-r--r-- | src/Alpha_shapes/test/CMakeLists.txt | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/Alpha_shapes/test/CMakeLists.txt b/src/Alpha_shapes/test/CMakeLists.txt new file mode 100644 index 00000000..a48c1a8f --- /dev/null +++ b/src/Alpha_shapes/test/CMakeLists.txt @@ -0,0 +1,31 @@ +cmake_minimum_required(VERSION 2.6) +project(GUDHIAlphaShapesTest) + +# need CGAL 4.6 +# cmake -DCGAL_DIR=~/workspace/CGAL-4.6-beta1 ../../.. +if(CGAL_FOUND) + if (NOT CGAL_VERSION VERSION_LESS 4.6.0) + message(STATUS "CGAL version: ${CGAL_VERSION}.") + + include( ${CGAL_USE_FILE} ) + + find_package(Eigen3 3.1.0) + if (EIGEN3_FOUND) + message(STATUS "Eigen3 version: ${EIGEN3_VERSION}.") + include( ${EIGEN3_USE_FILE} ) + include_directories (BEFORE "../../include") + + add_definitions(-DDEBUG_TRACES) + add_executable ( AlphaShapesUnitTest Alpha_shapes_unit_test.cpp ) + target_link_libraries(AlphaShapesUnitTest ${Boost_SYSTEM_LIBRARY} ${CGAL_LIBRARY} ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY}) + add_test(AlphaShapesUnitTest ${CMAKE_CURRENT_BINARY_DIR}/AlphaShapesUnitTest) + + else() + message(WARNING "Eigen3 not found. Version 3.1.0 is required for Alpha shapes feature.") + endif() + else() + message(WARNING "CGAL version: ${CGAL_VERSION} is too old to compile Alpha shapes feature. Version 4.6.0 is required.") + endif () +endif() + +cpplint_add_tests("${CMAKE_SOURCE_DIR}/src/Alpha_shapes/include/gudhi") |