You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdealternatives/CMakeLists.txt

53 lines
2.3 KiB
CMake

################################################################################
# TDEAlternatives - alternatives configuration module for TDE #
# #
# Improvements and feedback are welcome! #
# This software is licensed under the terms of the GNU GPL v3 license. #
################################################################################
cmake_minimum_required( VERSION 3.1 )
project( kcm_alternatives )
### Required modules ###########################################################
include( FindPkgConfig )
include( CheckFunctionExists )
include( CheckSymbolExists )
include( CheckIncludeFile )
include( CheckLibraryExists )
include( CheckCSourceCompiles )
include( CheckCXXSourceCompiles )
### TDE macros #################################################################
include( TDEMacros )
tde_set_project_version( )
include( TDESetupPaths )
tde_setup_paths( )
### Optional support ###########################################################
option( WITH_DISTRIBUTION_DPKG "Enable support for DPKG package manager" OFF )
option( WITH_DISTRIBUTION_RPM "Enable support for RPM package manager" OFF )
### Modules to build ###########################################################
option( BUILD_ALL "Build all" ON )
option( BUILD_DOC "Build documentation" ${BUILD_ALL} )
option( BUILD_TRANSLATIONS "Build translations" ${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" )
### Add subdirectories #########################################################
add_subdirectory( src )
tde_conditional_add_project_docs( BUILD_DOC )
tde_conditional_add_project_translations( BUILD_TRANSLATIONS )
### Write configuration ########################################################
configure_file( config.h.cmake config.h @ONLY )