Enableing test coverage for unittests.
authorKim Kulling <kim.kulling@googlemail.com>
Wed, 16 Nov 2016 11:06:21 +0000 (12:06 +0100)
committerKim Kulling <kim.kulling@googlemail.com>
Wed, 16 Nov 2016 11:06:21 +0000 (12:06 +0100)
code/CMakeLists.txt
test/CMakeLists.txt

index 0f2af73..3f0b696 100644 (file)
@@ -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()
-
index b1428ce..bdea8df 100644 (file)
@@ -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()
+