-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathCMakeLists.txt
73 lines (62 loc) · 1.52 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
73
project(lxqt-config-powermanagement)
set(QTX_LIBRARIES Qt6::Widgets Qt6::DBus Qt6::Svg)
set(SOURCES
main.cpp
mainwindow.cpp
lidwatchersettings.cpp
batterywatchersettings.cpp
idlenesswatchersettings.cpp
powermanagementsettings.cpp
powerkeyssettings.cpp
helpers.cpp
../src/iconproducer.cpp
)
set(UI_FILES
lidwatchersettings.ui
batterywatchersettings.ui
idlenesswatchersettings.ui
powerkeyssettings.ui
)
set(ICON_FILES
icons/laptop-lid.svg
)
set(DESKTOP_FILES_IN
lxqt-config-powermanagement.desktop.in
)
# Translations **********************************
lxqt_translate_ts(QM_FILES
UPDATE_TRANSLATIONS ${UPDATE_TRANSLATIONS}
SOURCES
${SOURCES}
${UI_FILES}
INSTALL_DIR
${LXQT_TRANSLATIONS_DIR}/${PROJECT_NAME}
)
lxqt_app_translation_loader(config-powermanagement_QM_LOADER ${PROJECT_NAME})
lxqt_translate_desktop(DESKTOP_FILES SOURCES ${DESKTOP_FILES_IN} USE_YAML)
add_executable(${PROJECT_NAME}
${SOURCES}
${DESKTOP_FILES}
${QM_FILES}
${config-powermanagement_QM_LOADER}
)
target_link_libraries(lxqt-config-powermanagement
lxqt
${QTX_LIBRARIES}
KF6::Solid
)
install(TARGETS
${PROJECT_NAME}
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
COMPONENT Runtime
)
install(FILES
${DESKTOP_FILES}
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications"
COMPONENT Runtime
)
install(FILES
${ICON_FILES}
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/scalable/devices"
COMPONENT Runtime
)