-
Notifications
You must be signed in to change notification settings - Fork 6
/
CMakeLists.txt
73 lines (60 loc) · 1.46 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
cmake_minimum_required(VERSION 2.8.11)
cmake_policy(VERSION 2.8)
project(lxqt-appswitcher)
include(GNUInstallDirs)
find_package(Qt5 COMPONENTS Core Widgets)
find_package(lxqt)
find_package(lxqt-globalkeys REQUIRED)
find_package(KF5WindowSystem)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
option(UPDATE_TRANSLATIONS "Update source translation translations/*.ts files" OFF)
set(files
src/app-switcher.cpp
src/app-switcher.h
src/app-model.cpp
src/app-model.h
src/app-itemdelegate.cpp
src/app-itemdelegate.h
src/settings.h
src/main.cpp
)
include(LXQtTranslate)
lxqt_translate_ts(appswitcher-qm
UPDATE_TRANSLATIONS ${UPDATE_TRANSLATIONS}
SOURCES
${files}
INSTALL_DIR
"${LXQT_TRANSLATIONS_DIR}/${PROJECT_NAME}"
COMPONENT runtime
)
lxqt_app_translation_loader(lxqt-appswitcher-qm ${PROJECT_NAME})
add_executable(${PROJECT_NAME}
${files}
${appswitcher-qm}
${lxqt-appswitcher-qm}
)
target_link_libraries(${PROJECT_NAME}
Qt5::Core
Qt5::Widgets
lxqt
lxqt-globalkeys
)
add_subdirectory(config)
install(TARGETS
${PROJECT_NAME}
DESTINATION "${CMAKE_INSTALL_BINDIR}"
COMPONENT runtime
)
install(FILES
resources/lxqt-config-appswitcher.desktop
DESTINATION "${LXQT_DATA_DIR}/applications"
)
install(FILES
resources/lxqt-appswitcher.desktop
DESTINATION "${LXQT_ETC_XDG_DIR}/autostart"
)
install(DIRECTORY
resources/themes
DESTINATION "${LXQT_SHARE_DIR}"
)