From 8e83a86b147987cc256812aff78335ac8a26c36e Mon Sep 17 00:00:00 2001 From: vrouvrea Date: Mon, 15 Dec 2014 16:56:31 +0000 Subject: CMakeLists.txt uniformization. check_google_style bug fix. generate_version copy Doxyfile git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/cpplint_test@352 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: a64f89b97ff3acbcf562070cc59b6065013d4aa1 --- src/Contraction/test/CMakeLists.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/Contraction') diff --git a/src/Contraction/test/CMakeLists.txt b/src/Contraction/test/CMakeLists.txt index b52c4862..6dddff1b 100644 --- a/src/Contraction/test/CMakeLists.txt +++ b/src/Contraction/test/CMakeLists.txt @@ -1,6 +1,20 @@ cmake_minimum_required(VERSION 2.6) project(GUDHIskbl) +if(NOT MSVC) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage") + set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} --coverage") + set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} --coverage") +endif() + add_executable(TestContraction TestContraction.cpp) +# Unitary tests add_test(TestContraction ${CMAKE_CURRENT_BINARY_DIR}/TestContraction ${CMAKE_SOURCE_DIR}/data/meshes/SO3_50000.off 0.2) + +if (LCOV_PATH) + # Lcov code coverage of unitary test + add_test(src/Contraction/lcov/coverage.log ${CMAKE_SOURCE_DIR}/scripts/check_code_coverage.sh ${CMAKE_SOURCE_DIR}/src/Contraction) +endif() + +cpplint_add_tests("${CMAKE_SOURCE_DIR}/src/Contraction/include/gudhi") -- cgit v1.2.3