You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
2.0 KiB
47 lines
2.0 KiB
2 months ago
|
################################################################################
|
||
|
# 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;
|