summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2013-03-12 10:47:36 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-13 09:48:26 +0100
commit8cdcff460d0e185189b89b06a5285bf13774ab3e (patch)
treebe5238ce50b8e4ac318da8dca584404d2dbe017e
parent72b87f29925056881d1df8b06a0bf01a0bab7635 (diff)
Clean up the CMake dbus module test.
The DBus module is aware of its QtCore dependency, and it doesn't need to be found explicitly. This test probably dates from when that was not the case. Change-Id: I3c78997660efed14d84b062d38d8c68dd4f7ae56 Reviewed-by: Alexander Neundorf <neundorf@kde.org> Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
-rw-r--r--tests/auto/cmake/test_dbus_module/CMakeLists.txt8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/auto/cmake/test_dbus_module/CMakeLists.txt b/tests/auto/cmake/test_dbus_module/CMakeLists.txt
index 6bbb52697c..8c250ea778 100644
--- a/tests/auto/cmake/test_dbus_module/CMakeLists.txt
+++ b/tests/auto/cmake/test_dbus_module/CMakeLists.txt
@@ -3,17 +3,15 @@ cmake_minimum_required(VERSION 2.8)
project(test_dbus_module)
-find_package(Qt5Core REQUIRED)
find_package(Qt5DBus REQUIRED)
include_directories(
- ${Qt5Core_INCLUDE_DIRS}
${Qt5DBus_INCLUDE_DIRS}
)
-add_definitions(${Qt5Core_DEFINITIONS} ${Qt5DBus_DEFINITIONS})
+add_definitions(${Qt5DBus_DEFINITIONS})
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Core_EXECUTABLE_COMPILE_FLAGS}")
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5DBus_EXECUTABLE_COMPILE_FLAGS}")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
@@ -33,4 +31,4 @@ qt5_add_dbus_adaptor(my_srcs
)
add_executable(myobject ${my_srcs} ${moc_files})
-target_link_libraries(myobject ${Qt5DBus_LIBRARIES} ${Qt5Core_LIBRARIES})
+target_link_libraries(myobject ${Qt5DBus_LIBRARIES})