blob: 80bf654de725078556968549cc3c5658532d1ff8 (
plain)
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
|
################################################################################
# twin-style-mallory #
# ------------------ #
# This file is licensed under the terms of GNU GPL v3 or later. #
# Improvements and feedback are welcome. #
################################################################################
project(twin-style-mallory)
### Includes ###################################################################
include(FindPkgConfig)
include(CheckFunctionExists)
include(CheckSymbolExists)
include(CheckIncludeFile)
include(CheckLibraryExists)
include(CheckCSourceCompiles)
include(CheckCXXSourceCompiles)
include(TDEMacros)
include(TDESetupPaths)
include(TDEVersion)
### Basic project setup ########################################################
cmake_minimum_required(VERSION ${TDE_CMAKE_MINIMUM_VERSION})
tde_set_project_version()
tde_setup_paths()
### Options ####################################################################
option(WITH_ALL_OPTIONS "Enable all optional support" OFF)
option(WITH_GCC_VISIBILITY "Enable GCC visibility" ${WITH_ALL_OPTIONS})
### Components #################################################################
option(BUILD_ALL "Build all" ON)
option(BUILD_COLORSCHEMES "Install colorschemes" ${BUILD_ALL})
option(BUILD_TCC_MODULE "Build Control Centre module" ${BUILD_ALL})
option(BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL})
### Configuration ##############################################################
include(ConfigureChecks.cmake)
configure_file(config.h.cmake config.h @ONLY)
### Subdirectories #############################################################
add_subdirectory(malloryclient)
tde_conditional_add_subdirectory(BUILD_COLORSCHEMES colorscheme)
# tde_conditional_add_project_translations()
# kate: indent-width 2; replace-tabs true;
|