aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2021-05-12 12:21:08 +0200
committerRobert Tari <robert@tari.in>2021-05-12 12:21:08 +0200
commit8d2c01288834de514aae8b6239f7b5145efdbdd1 (patch)
treef504c6b8f91b277707cbf61f055637f1381c31ac /CMakeLists.txt
parentc158381dc19ec10fab438dcb5f45fd7d9079d609 (diff)
parent4dedcedf52cfedc625d4ae3ecab9068e8885728a (diff)
downloadayatana-ido-8d2c01288834de514aae8b6239f7b5145efdbdd1.tar.gz
ayatana-ido-8d2c01288834de514aae8b6239f7b5145efdbdd1.tar.bz2
ayatana-ido-8d2c01288834de514aae8b6239f7b5145efdbdd1.zip
Merge branch 'sunweaver-pr/fix-coverage-report'
Attributes GH PR #32: https://github.com/AyatanaIndicators/ayatana-ido/pull/32
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
1 files changed, 9 insertions, 0 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