-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
58 lines (46 loc) · 2.71 KB
/
CMakeLists.txt
File metadata and controls
58 lines (46 loc) · 2.71 KB
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
################################################################################
# Leafbar - a DeskBar-style panel for TDE #
# Copyright (C) 2023-2025 Philippe Mavridis <philippe.mavridis@yandex.com> #
# #
# Improvements and feedback are welcome! #
# This software is licensed under the terms of the GNU GPL v3 license. #
################################################################################
cmake_minimum_required( VERSION 3.5 )
project( leafbar )
### Required modules ###########################################################
include(FindPkgConfig)
include(CheckFunctionExists)
include(CheckSymbolExists)
include(CheckIncludeFile)
include(CheckLibraryExists)
include(CheckCSourceCompiles)
include(CheckCXXSourceCompiles)
### TDE macros #################################################################
include(TDEMacros)
tde_set_project_version()
include(TDESetupPaths)
tde_setup_paths()
### Optional support ###########################################################
option(WITH_ALL_OPTIONS "Enable all optional support" OFF)
option(WITH_ALL_EXPERIMENTAL "Enable all experimental stuff (careful!)" OFF)
option(WITH_XCOMPOSITE "Enable XComposite extension support" ${WITH_ALL_EXPERIMENTAL})
option(WITH_KICKER_APPLETS "Enable Kicker applets support (EXPERIMENTAL)" ${WITH_ALL_EXPERIMENTAL})
### Modules to build ###########################################################
option(BUILD_ALL "Build all" ON )
option(BUILD_DOC "Build documentation" ${BUILD_ALL} )
option(BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
option(BUILD_PAGER_APPLET "Build pager applet (EXPERIMENTAL)" ${WITH_ALL_EXPERIMENTAL} )
### Configure checks ###########################################################
include(ConfigureChecks.cmake)
### Compiler settings ##########################################################
add_definitions(-DHAVE_CONFIG_H)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined")
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined")
### Add subdirectories #########################################################
add_subdirectory(src)
add_subdirectory(data)
tde_conditional_add_project_docs(BUILD_DOC)
tde_conditional_add_project_translations(BUILD_TRANSLATIONS)
### Write configuration ########################################################
configure_file( config.h.cmake config.h @ONLY )