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.
52 lines
2.1 KiB
52 lines
2.1 KiB
################################################################################
|
|
# 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;
|