forked from lxqt/lxqt-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
62 lines (53 loc) · 1.79 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
cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR)
project(lxqt-config)
set(LXQT_CONFIG_PROJECT "${PROJECT_NAME}")
set(LXQTBT_MINIMUM_VERSION "0.1.0")
option(UPDATE_TRANSLATIONS "Update source translation translations/*.ts files" OFF)
option(WITH_INPUT "Build the 'lxqt-config-input'" ON)
option(WITH_FILE_ASSOCIATIONS "Build the 'lxqt-config-file-associations'" ON)
option(WITH_APPEARANCE "Build the 'lxqt-config-appearance'" ON)
option(WITH_MONITOR "Build the 'lxqt-config-monitor'" ON)
option(WITH_BRIGHTNESS "Build the 'lxqt-config-brightness'" ON)
option(WITH_LOCALE "Build the 'lxqt-config-locale'" ON)
include(GNUInstallDirs)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)
find_package(Qt5Widgets REQUIRED QUIET)
find_package(Qt5DBus REQUIRED QUIET)
find_package(Qt5Xml REQUIRED QUIET)
find_package(Qt5Concurrent REQUIRED QUIET)
find_package(Qt5X11Extras REQUIRED QUIET)
find_package(Qt5LinguistTools REQUIRED QUIET)
find_package(lxqt REQUIRED QUIET)
find_package(lxqt-build-tools ${LXQTBT_MINIMUM_VERSION} REQUIRED)
include(LXQtCompilerSettings NO_POLICY_SCOPE)
include(LXQtConfigVars)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
include(LXQtTranslate)
add_subdirectory(src)
if (WITH_INPUT OR WITH_APPEARANCE)
add_subdirectory(liblxqt-config-cursor)
endif()
if (WITH_INPUT)
add_subdirectory(lxqt-config-input)
endif()
if (WITH_FILE_ASSOCIATIONS)
add_subdirectory(lxqt-config-file-associations)
endif()
if (WITH_APPEARANCE)
add_subdirectory(lxqt-config-appearance)
endif()
if (WITH_MONITOR)
add_subdirectory(lxqt-config-monitor)
endif()
if (WITH_BRIGHTNESS)
add_subdirectory(lxqt-config-brightness)
endif()
if (WITH_LOCALE)
add_subdirectory(lxqt-config-locale)
endif()