diff options
author | Rodney Dawes <dobey.pwns@gmail.com> | 2018-03-16 07:33:13 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-03-16 10:44:38 +0100 |
commit | 744720d0a29eb327aa0c25b4f3c4c134eb78e855 (patch) | |
tree | 61700490ba50b028a3144f1b4be5c34ad5e79b07 /tests/CMakeLists.txt | |
parent | 970f3823f1c14e094630e63d8d9b79235cb9bacf (diff) | |
download | ayatana-indicator-power-744720d0a29eb327aa0c25b4f3c4c134eb78e855.tar.gz ayatana-indicator-power-744720d0a29eb327aa0c25b4f3c4c134eb78e855.tar.bz2 ayatana-indicator-power-744720d0a29eb327aa0c25b4f3c4c134eb78e855.zip |
Use coverage support from cmake-extras.
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r-- | tests/CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 55e0b24..4010b54 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -7,7 +7,7 @@ pkg_check_modules(DBUSTEST REQUIRED include_directories (SYSTEM ${DBUSTEST_INCLUDE_DIRS}) # add warnings -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -g ${C_WARNING_ARGS}") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 ${C_WARNING_ARGS}") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-weak-vtables -Wno-global-constructors") # Google Test # build the necessary schemas @@ -42,6 +42,7 @@ include_directories (${CMAKE_CURRENT_BINARY_DIR}) function(add_test_by_name name) set (TEST_NAME ${name}) + set (COVERAGE_TEST_TARGETS ${COVERAGE_TEST_TARGETS} ${TEST_NAME} PARENT_SCOPE) add_executable (${TEST_NAME} ${TEST_NAME}.cc) add_test (${TEST_NAME} ${TEST_NAME}) add_dependencies (${TEST_NAME} ayatanaindicatorpowerservice gschemas-compiled) @@ -50,3 +51,8 @@ endfunction() add_test_by_name(test-notify) add_test(NAME dear-reader-the-next-test-takes-80-seconds COMMAND true) add_test_by_name(test-device) + +set(COVERAGE_TEST_TARGETS + ${COVERAGE_TEST_TARGETS} + PARENT_SCOPE +) |