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>
This commit is contained in:
parent
72b87f2992
commit
8cdcff460d
@ -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})
|
||||
|
Loading…
Reference in New Issue
Block a user