forked from lxqt/lxqt-session
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
72 lines (61 loc) · 1.38 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
project("lxqt-leave")
set(CPP_FILES
main.cpp
leavedialog.cpp
listwidget.cpp
)
set(H_FILES
leavedialog.h
listwidget.h
)
set(UI_FILES
leavedialog.ui
)
# Translations **********************************
lxqt_translate_desktop(DESKTOP_FILES
SOURCES
resources/lxqt-leave.desktop.in
resources/lxqt-hibernate.desktop.in
resources/lxqt-lockscreen.desktop.in
resources/lxqt-logout.desktop.in
resources/lxqt-reboot.desktop.in
resources/lxqt-shutdown.desktop.in
resources/lxqt-suspend.desktop.in
USE_YAML
)
lxqt_translate_ts(lxqt-leave_QM_FILES
UPDATE_TRANSLATIONS
${UPDATE_TRANSLATIONS}
SOURCES
${CPP_FILES}
${UI_FILES}
${H_FILES}
INSTALL_DIR
"${LXQT_TRANSLATIONS_DIR}/${PROJECT_NAME}"
)
lxqt_app_translation_loader(lxqt-leave_QM_LOADER ${PROJECT_NAME})
#************************************************
add_executable(lxqt-leave
${CPP_FILES}
${DESKTOP_FILES}
${lxqt-leave_QM_LOADER}
${lxqt-leave_QM_FILES}
)
target_link_libraries(lxqt-leave
lxqt
)
install(TARGETS
lxqt-leave
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
COMPONENT Runtime
)
install(FILES
${DESKTOP_FILES} DESTINATION
"${CMAKE_INSTALL_DATAROOTDIR}/applications"
COMPONENT Runtime
)
install(FILES
resources/lxqt-leave.1
DESTINATION "${CMAKE_INSTALL_MANDIR}/man1"
COMPONENT Runtime
)