summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2019-03-03 15:22:18 +0100
committerSlávek Banko <slavek.banko@axis.cz>2019-03-03 15:22:18 +0100
commit8fc2a6ca26ff8a6aaffc57357be865a8dcfecbd8 (patch)
tree66a2aeb5bb86b595005fbbcbdccb07694885d7c6
parentb956734b51a178ba083848672b006aa325217381 (diff)
downloadtdelibs-8fc2a6ca26ff8a6aaffc57357be865a8dcfecbd8.zip
tdelibs-8fc2a6ca26ff8a6aaffc57357be865a8dcfecbd8.tar.gz
Fix CMake build dependencies for tests.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--dcop/tests/CMakeLists.txt12
-rw-r--r--tdecore/tests/CMakeLists.txt6
2 files changed, 18 insertions, 0 deletions
diff --git a/dcop/tests/CMakeLists.txt b/dcop/tests/CMakeLists.txt
index 72f8243..1eb0c42 100644
--- a/dcop/tests/CMakeLists.txt
+++ b/dcop/tests/CMakeLists.txt
@@ -30,12 +30,24 @@ tde_add_check_executable( dcop_test AUTOMOC
DEPENDENCIES dcop_tests_generated
)
+set_property(
+ SOURCE test.cpp
+ APPEND PROPERTY
+ OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/test_skel.cpp
+)
+
tde_add_check_executable( driver AUTOMOC
SOURCES driver.cpp ${CMAKE_CURRENT_BINARY_DIR}/test.stub
LINK tdecore-shared
DEPENDENCIES dcop_tests_generated
)
+set_property(
+ SOURCE driver.cpp
+ APPEND PROPERTY
+ OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/test_stub.cpp
+)
+
add_test( NAME "dcop/dcop-tests"
COMMAND sh -x "${CMAKE_CURRENT_SOURCE_DIR}/run-tests.sh"
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}" )
diff --git a/tdecore/tests/CMakeLists.txt b/tdecore/tests/CMakeLists.txt
index c0fe7d7..36377a2 100644
--- a/tdecore/tests/CMakeLists.txt
+++ b/tdecore/tests/CMakeLists.txt
@@ -52,3 +52,9 @@ tde_add_check_executable( kidlservertest AUTOMOC SOURCES KIDLTest.cpp KIDLTest.s
LINK tdeconfigtest-shared )
tde_add_check_executable( kidlclienttest AUTOMOC SOURCES KIDLTestClient.cpp
KIDLTest.stub LINK tdeconfigtest-shared )
+
+set_property(
+ SOURCE KIDLTestClient.cpp
+ APPEND PROPERTY
+ OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/KIDLTest_stub.cpp
+)