This repository has been archived by the owner on Dec 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
95 lines (73 loc) · 2.34 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
cmake_minimum_required(VERSION 3.5.0 FATAL_ERROR)
project(lxqt-labwc-session)
cmake_policy(SET CMP0160 NEW)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
include(GNUInstallDirs)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
# Minimum Versions
set(LXQT_MINIMUM_VERSION "2.0.0")
find_package(lxqt ${LXQT_MINIMUM_VERSION} REQUIRED)
#find_package(Labwc REQUIRED)
find_package(PkgConfig REQUIRED)
# Please don't move, must be after lxqt
#find_package(XdgUserDirs REQUIRED)
# Patch Version
set(LXQT_LABWC_SESSION_PATCH_VERSION 0)
set(LXQT_LABWC_SESSION_VERSION 0.2)
add_definitions(
"-DLXQT_LABWC_SESSION_VERSION=\"${LXQT_LABWC_SESSION_VERSION}\""
)
include(LXQtPreventInSourceBuilds)
include(LXQtCompilerSettings NO_POLICY_SCOPE)
include(GNUInstallDirs)
include(LXQtConfigVars)
file(GLOB DESKTOP_FILES_IN *.desktop.in)
find_program(LABWC_EXECUTABLE labwc)
if(LABWC_EXECUTABLE)
execute_process(
COMMAND ${LABWC_EXECUTABLE} --version
OUTPUT_VARIABLE LABWC_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE
)
message("Found labwc version: ${LABWC_VERSION}")
endif()
# startlxqt<compositor> scripts
set(PREDEF_XDG_DATA_DIRS "$XDG_DATA_HOME")
if(NOT("${LXQT_DATA_DIR}" MATCHES "^/usr(/local)?/share$"))
set(PREDEF_XDG_DATA_DIRS "${PREDEF_XDG_DATA_DIRS}:${LXQT_DATA_DIR}")
endif()
set(PREDEF_XDG_DATA_DIRS "${PREDEF_XDG_DATA_DIRS}:/usr/local/share:/usr/share")
set(PREDEF_XDG_CONFIG_DIRS "/etc:${LXQT_ETC_XDG_DIR}:/usr/share")
#configure_file(toggledropdown.in toggledropdown @ONLY)
configure_file(startlxqtlabwc.in startlxqtlabwc @ONLY)
configure_file(lxqt2labwcexporter.in lxqt2labwcexporter @ONLY)
install(PROGRAMS
"${CMAKE_CURRENT_BINARY_DIR}/startlxqtlabwc"
"${CMAKE_CURRENT_BINARY_DIR}/lxqt2labwcexporter"
DESTINATION "${CMAKE_INSTALL_BINDIR}"
COMPONENT Runtime
)
install(FILES
startlxqtlabwc.1
DESTINATION "${CMAKE_INSTALL_MANDIR}/man1"
COMPONENT Runtime
)
install(FILES
lxqt-labwc.png
DESTINATION "${LXQT_SHARE_DIR}/graphics"
COMPONENT Runtime
)
install(FILES
lxqt-labwc.desktop
DESTINATION "${CMAKE_INSTALL_DATADIR}/wayland-sessions"
COMPONENT Runtime
)
# default config files for compositors
add_subdirectory(config)
# wallpaper
add_subdirectory(wallpaper)
# openbox themes
add_subdirectory(themes)