diff options
-rw-r--r-- | CMakeLists.txt | 9 | ||||
-rw-r--r-- | tests/CMakeLists.txt | 7 |
2 files changed, 9 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b039352..70b509f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,6 +51,15 @@ if (ENABLE_TESTS) enable_testing() add_subdirectory(example) add_subdirectory(tests) + # coverage + if (ENABLE_COVERAGE) + find_package(CoverageReport) + ENABLE_COVERAGE_REPORT( + TARGETS "ayatana-ido3-0.4" + TESTS "gtest-menuitems" + FILTER /usr/include ${CMAKE_BINARY_DIR}/* + ) + endif() endif() # Display config info diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 39cde1f..a31f789 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -23,10 +23,3 @@ target_link_libraries("gtest-menuitems" ) add_test("gtest-menuitems" "gtest-menuitems") add_dependencies("gtest-menuitems" ayatana-ido3-0.4) - - -# coverage -if (ENABLE_COVERAGE) - find_package(CoverageReport) - ENABLE_COVERAGE_REPORT(TARGETS "gtest-menuitems" TESTS "gtest-menuitems") -endif() |