summaryrefslogtreecommitdiffstats
path: root/tests/manual
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2012-04-18 14:36:08 +0200
committerQt by Nokia <qt-info@nokia.com>2012-04-18 19:53:34 +0200
commitc12057df292f6985e42d5c012bafc3accf30c7c9 (patch)
tree0c62b0d5cee8e6a9da8a71851171b0068581a6f4 /tests/manual
parentd5bd336dba55d106037a0ccf8fe67f32a3f9c5c6 (diff)
Fix a CMake unit test.
This has been broken since modules do not currently find their (public) dependencies. Change-Id: I0c9e7c46f7a6499993c98aa6d33996bdd3a1be5f Reviewed-by: Clinton Stimpson <clinton@elemtech.com> Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'tests/manual')
-rw-r--r--tests/manual/cmake/pass9/CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/manual/cmake/pass9/CMakeLists.txt b/tests/manual/cmake/pass9/CMakeLists.txt
index 6aefd37696..893690428b 100644
--- a/tests/manual/cmake/pass9/CMakeLists.txt
+++ b/tests/manual/cmake/pass9/CMakeLists.txt
@@ -3,13 +3,15 @@ cmake_minimum_required(VERSION 2.8)
project(pass9)
+find_package(Qt5Core REQUIRED)
find_package(Qt5DBus REQUIRED)
include_directories(
+ ${Qt5Core_INCLUDE_DIRS}
${Qt5DBus_INCLUDE_DIRS}
)
-add_definitions(${Qt5DBus_DEFINITIONS})
+add_definitions(${Qt5Core_DEFINITIONS} ${Qt5DBus_DEFINITIONS})
set(CMAKE_INCLUDE_CURRENT_DIR ON)
@@ -29,4 +31,4 @@ qt5_add_dbus_adaptor(my_srcs
)
add_executable(myobject ${my_srcs} ${moc_files})
-target_link_libraries(myobject ${Qt5DBus_LIBRARIES})
+target_link_libraries(myobject ${Qt5DBus_LIBRARIES} ${Qt5Core_LIBRARIES})