cmake_minimum_required(VERSION 3.0) project(qt-43555 C CXX) find_package(Qt5Core) find_package(Qt5DBus) find_package(Qt5Concurrent) add_executable(signalpoll signalpoll.cpp) target_link_libraries(signalpoll Qt5::Core Qt5::DBus Qt5::Concurrent dbus-1) set_property(TARGET signalpoll PROPERTY CXX_STANDARD 11) include_directories( /usr/include/dbus-1.0 /usr/lib64/dbus-1.0/include ) add_executable(test-interface test-interface.cpp) target_link_libraries(test-interface Qt5::Core Qt5::DBus Qt5::Concurrent dbus-1) set_property(TARGET test-interface PROPERTY CXX_STANDARD 11) add_executable(signalpoll-c signalpoll.c) target_link_libraries(signalpoll-c dbus-1)