blob: 196c588e81ef676a3a7a4a9c589dfc80355949aa (
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
48
49
50
51
|
################################################################################
# twin-style-mallory #
# ------------------ #
# This file is licensed under the terms of GNU GPL v3 or later. #
# Improvements and feedback are welcome. #
################################################################################
##### set project version ########################
include( TDEVersion )
cmake_minimum_required( VERSION ${TDE_CMAKE_MINIMUM_VERSION} )
tde_set_project_version( )
##### set project name ###########################
project(twin-style-mallory)
### Includes ###################################################################
include(FindPkgConfig)
include(CheckFunctionExists)
include(CheckSymbolExists)
include(CheckIncludeFile)
include(CheckLibraryExists)
include(CheckCSourceCompiles)
include(CheckCXXSourceCompiles)
include(TDEMacros)
include(TDESetupPaths)
### Basic project setup ########################################################
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(BUILD_TRANSLATIONS)
# kate: indent-width 2; replace-tabs true;
|