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.
tde-style-polyester/CMakeLists.txt

56 lines
2.5 KiB

################################################################################
# Polyester - widget style and twin decoration aimed to be a good balance #
# between eye candy and simplicity #
# #
# This file is released under the GNU GPL version 3 or later. #
# Improvements and feedback are welcome! #
################################################################################
cmake_minimum_required(VERSION 3.5)
### general package setup ######################################################
project(tde-style-polyester)
### essential cmake modules ####################################################
include(FindPkgConfig)
include(CheckFunctionExists)
include(CheckSymbolExists)
include(CheckIncludeFile)
include(CheckLibraryExists)
include(CheckCSourceCompiles)
include(CheckCXXSourceCompiles)
### TDE modules ################################################################
include(TDEMacros)
tde_set_project_version()
include(TDESetupPaths)
tde_setup_paths()
### optional support ###########################################################
option(WITH_ALL_OPTIONS "Enable all optional support" OFF)
option(WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden"
${WITH_ALL_OPTIONS})
### user requested modules #####################################################
option(BUILD_ALL "Build all" ON)
option(BUILD_TWIN_DECORATION "Build window decoration for twin" ${BUILD_ALL})
option(BUILD_WIDGET_STYLE "Build widget style" ${BUILD_ALL})
option(BUILD_COLOR_SCHEMES "Install color schemes" ${BUILD_ALL})
### 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")
### subdirectories #############################################################
tde_conditional_add_subdirectory(BUILD_TWIN_DECORATION client)
tde_conditional_add_subdirectory(BUILD_WIDGET_STYLE style)
tde_conditional_add_subdirectory(BUILD_COLOR_SCHEMES color-schemes)
### write configuration ########################################################
configure_file(config.h.cmake config.h @ONLY)