ukui-search/ukuisearch-systemdbus/CMakeLists.txt

16 lines
627 B
CMake
Raw Normal View History

2023-08-15 17:34:41 +08:00
set(CMAKE_AUTOMOC ON)
find_package(QT NAMES Qt6 Qt5 COMPONENTS Core DBus REQUIRED)
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core DBus REQUIRED)
add_executable(ukui-search-systemdbus
main.cpp
sysdbusregister.cpp sysdbusregister.h
)
target_link_libraries(ukui-search-systemdbus PRIVATE
Qt${QT_VERSION_MAJOR}::Core
Qt${QT_VERSION_MAJOR}::DBus
)
install(FILES conf/com.ukui.search.qt.systemdbus.service DESTINATION /usr/share/dbus-1/system-services/)
install(FILES conf/com.ukui.search.qt.systemdbus.conf DESTINATION /etc/dbus-1/system.d/)
install(TARGETS ukui-search-systemdbus RUNTIME DESTINATION /usr/bin)