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>
This commit is contained in:
Stephen Kelly 2012-04-18 14:36:08 +02:00 committed by Qt by Nokia
parent d5bd336dba
commit c12057df29

View 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})