ukui-search/ukuisearch-systemdbus/CMakeLists.txt

17 lines
634 B
CMake
Raw Normal View History

2024-01-26 14:31:56 +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/)
2024-01-26 18:01:14 +08:00
install(FILES conf/com.ukui.search.qt.systemdbus.conf DESTINATION /usr/share/dbus-1/system.d/)
2024-01-26 14:31:56 +08:00
2024-01-26 18:01:14 +08:00
install(TARGETS ukui-search-systemdbus RUNTIME DESTINATION /usr/bin)