aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-03-12 15:53:17 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-03-12 15:53:17 +0100
commiteb297fbbdc4befba9b187183ad20311040ab71a3 (patch)
tree3b23c924a0240b56f928c09af92f7655478795c8 /tests
parent733ca45d51c198287c4732c0b2f35e4652666aa9 (diff)
downloadayatana-indicator-session-eb297fbbdc4befba9b187183ad20311040ab71a3.tar.gz
ayatana-indicator-session-eb297fbbdc4befba9b187183ad20311040ab71a3.tar.bz2
ayatana-indicator-session-eb297fbbdc4befba9b187183ad20311040ab71a3.zip
tests/CMakeLists.txt: Handle custom command indirectly via custom target.
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 4c964ca..7c06881 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -41,13 +41,16 @@ add_library (backendmock STATIC
backend-mock-users.h)
set_target_properties (backendmock PROPERTIES COMPILE_FLAGS " ${CC_WARNING_ARGS} -g")
+add_custom_target(
+ gschemas-compiled ALL DEPENDS gschemas.compiled
+)
+
# test-service
add_executable (test-service
- test-service.cc
- gschemas.compiled)
+ test-service.cc)
set_target_properties (test-service PROPERTIES COMPILE_FLAGS " ${CC_WARNING_ARGS} -std=c++0x -g")
add_test (test-service test-service)
-add_dependencies (test-service libayatanaindicatorsessionservice backendmock)
+add_dependencies (test-service libayatanaindicatorsessionservice backendmock gschemas-compiled)
target_link_libraries (test-service libayatanaindicatorsessionservice backendmock gtest ${SERVICE_LIBRARIES} ${GTEST_LIBS})
add_subdirectory (backend-dbus)