21 lines
830 B
CMake
21 lines
830 B
CMake
set(notificationServer_SRCS
|
|
server.h
|
|
server-private.h
|
|
server.cpp
|
|
main.cpp
|
|
)
|
|
qt_add_dbus_adaptor(notificationServer_SRCS dbus/org.freedesktop.Notifications.xml server-private.h NotificationServer::ServerPrivate)
|
|
qt_add_dbus_adaptor(notificationServer_SRCS dbus/org.ukui.notificationServer.xml server-private.h NotificationServer::ServerPrivate)
|
|
|
|
add_executable(ukui-notification-server ${notificationServer_SRCS})
|
|
target_link_libraries(ukui-notification-server
|
|
PRIVATE
|
|
Qt${QT_VERSION_MAJOR}::Core
|
|
Qt${QT_VERSION_MAJOR}::DBus
|
|
)
|
|
set(TS_FILES ukui-notification_zh_CN.ts)
|
|
if(COMMAND qt_create_translation)
|
|
qt_create_translation(QM_FILES ${CMAKE_SOURCE_DIR}/translations ${TS_FILES})
|
|
else()
|
|
qt5_create_translation(QM_FILES ${CMAKE_SOURCE_DIR}/translations ${TS_FILES})
|
|
endif() |