cmake_minimum_required(VERSION 3.0) project(dbus-qt CXX) #find_package(Qt4 4.4.3 REQUIRED QtCore QtDBus) find_package(Qt5Core) find_package(Qt5DBus) find_package(Qt5Concurrent) add_executable(dbus-test dbus-test.cc) #target_link_libraries(dbus-test Qt4::QtCore Qt4::QtDBus) target_link_libraries(dbus-test Qt5::Core Qt5::DBus Qt5::Concurrent) set_property(TARGET dbus-test PROPERTY CXX_STANDARD 11) add_executable(dbus-test-nothreads dbus-test-nothreads.cc) #target_link_libraries(dbus-test-nothreads Qt4::QtCore Qt4::QtDBus) target_link_libraries(dbus-test-nothreads Qt5::Core Qt5::DBus Qt5::Concurrent) set_property(TARGET dbus-test-nothreads PROPERTY CXX_STANDARD 11)