Fix a CMake unit test.
authorStephen Kelly <stephen.kelly@kdab.com>
Wed, 18 Apr 2012 12:36:08 +0000 (14:36 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 18 Apr 2012 17:53:34 +0000 (19:53 +0200)
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>
tests/manual/cmake/pass9/CMakeLists.txt

index 6aefd37..8936904 100644 (file)
@@ -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})