aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2021-06-11 13:02:33 +0200
committerRobert Tari <robert@tari.in>2021-06-11 13:19:03 +0200
commit887b5f92bdd6485a4da521086ec88e63357d2260 (patch)
tree06c2e07e757b6d5ef556b10922d7c236f3fdb7b3 /src
parenta2aac2de9402709a0eeea16fb893d261a61624e6 (diff)
downloadayatana-indicator-session-887b5f92bdd6485a4da521086ec88e63357d2260.tar.gz
ayatana-indicator-session-887b5f92bdd6485a4da521086ec88e63357d2260.tar.bz2
ayatana-indicator-session-887b5f92bdd6485a4da521086ec88e63357d2260.zip
Convert testing and coverage reporting to cmake-extras style
fixes https://github.com/AyatanaIndicators/ayatana-indicator-session/issues/34
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt7
-rw-r--r--src/backend-dbus/CMakeLists.txt5
2 files changed, 1 insertions, 11 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 7ee1692..eeaa113 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -26,10 +26,5 @@ set_property (SOURCE main.c
GETTEXT_PACKAGE="${GETTEXT_PACKAGE}"
LOCALEDIR="${CMAKE_INSTALL_FULL_LOCALEDIR}")
add_executable (${SERVICE_EXEC} main.c)
-target_link_libraries (${SERVICE_EXEC} libayatanaindicatorsessionservice backenddbus ${SERVICE_LIBRARIES} ${GCOV_LIBS} ${URLDISPATCHER_LIBRARIES})
+target_link_libraries (${SERVICE_EXEC} libayatanaindicatorsessionservice backenddbus ${SERVICE_LIBRARIES} ${URLDISPATCHER_LIBRARIES})
install (TARGETS ${SERVICE_EXEC} RUNTIME DESTINATION ${CMAKE_INSTALL_FULL_PKGLIBEXECDIR})
-
-# common properties
-set_property (TARGET libayatanaindicatorsessionservice ${SERVICE_EXEC}
- APPEND_STRING PROPERTY COMPILE_FLAGS
- " -g ${CC_WARNING_ARGS} ${GCOV_FLAGS}")
diff --git a/src/backend-dbus/CMakeLists.txt b/src/backend-dbus/CMakeLists.txt
index faa09a9..5c99e9f 100644
--- a/src/backend-dbus/CMakeLists.txt
+++ b/src/backend-dbus/CMakeLists.txt
@@ -49,11 +49,6 @@ add_gdbus_codegen (BACKEND_GENERATED_SOURCES desktop-session
set (SOURCES actions.c guest.c users.c backend-dbus.c utils.c)
-# add warnings/coverage info on handwritten files
-# but not the autogenerated ones...
-set_source_files_properties (${SOURCES}
- PROPERTIES COMPILE_FLAGS " -g ${CC_WARNING_ARGS} ${GCOV_FLAGS}")
-
# add the bin dir to our include path s.t. our code can find the autogenerated header files
include_directories (${CMAKE_CURRENT_BINARY_DIR} ${SERVICE_INCLUDE_DIRS})