summaryrefslogtreecommitdiffstats
path: root/dcop
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:27:33 +0100
commitdb60dede7d236a89fb8b6aceba5e1fd2ee44d8bf (patch)
tree9181b503e93bdc24f03afb1a6be7a9405a3fbe8c /dcop
parentcfa79f06e225942d19903b52cc2ed74e966d3c3f (diff)
downloadtdelibs-db60dede7d236a89fb8b6aceba5e1fd2ee44d8bf.tar.gz
tdelibs-db60dede7d236a89fb8b6aceba5e1fd2ee44d8bf.zip
Fix CMake build dependencies for tests.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 8fc2a6ca26ff8a6aaffc57357be865a8dcfecbd8)
Diffstat (limited to 'dcop')
-rw-r--r--dcop/tests/CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/dcop/tests/CMakeLists.txt b/dcop/tests/CMakeLists.txt
index f321f06c9..e3e4c5312 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 kdecore-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}" )