From 76794f4aa7d1486bb7bb0236565ca6d4c8e64f1a Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Wed, 16 Nov 2016 12:06:21 +0100 Subject: [PATCH] Enableing test coverage for unittests. --- code/CMakeLists.txt | 11 ----------- test/CMakeLists.txt | 10 ++++++++++ 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/code/CMakeLists.txt b/code/CMakeLists.txt index 0f2af73..3f0b696 100644 --- a/code/CMakeLists.txt +++ b/code/CMakeLists.txt @@ -928,14 +928,3 @@ if(MSVC AND ASSIMP_INSTALL_PDB) CONFIGURATIONS RelWithDebInfo ) endif () - -if (COVERALLS) - set(COVERAGE_SRCS ${assimp_src} ) - - # Create the coveralls target. - coveralls_setup( - "${COVERAGE_SRCS}" # The source files. - ON # If we should upload. - "${PROJECT_SOURCE_DIR}/cmake/") # (Optional) Alternate project cmake module path. -endif() - diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index b1428ce..bdea8df 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -122,3 +122,13 @@ ENDIF( WIN32 ) target_link_libraries( unit assimp ${platform_libs} ) add_subdirectory(headercheck) +if (COVERALLS) + set(COVERAGE_SRCS ${assimp_src} ${TEST_SRCS} ) + + # Create the coveralls target. + coveralls_setup( + "${COVERAGE_SRCS}" # The source files. + ON # If we should upload. + "${PROJECT_SOURCE_DIR}/cmake/") # (Optional) Alternate project cmake module path. +endif() + -- 2.7.4