diff options
author | gregory guy <gregory-tde@laposte.net> | 2020-07-30 23:51:02 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-08-07 15:31:04 +0200 |
commit | 0b3b22a0445d41f6165b583b97e021001356a7cf (patch) | |
tree | 2eb51e1ea4340f948ee345897c752f1e30416141 /CMakeLists.txt | |
parent | 913c0904f41f53faeebf9d094c16a5ba258b69aa (diff) | |
download | tde-systemsettings-0b3b22a0445d41f6165b583b97e021001356a7cf.tar.gz tde-systemsettings-0b3b22a0445d41f6165b583b97e021001356a7cf.zip |
Conversion to the cmake building system.
Signed-off-by: gregory guy <gregory-tde@laposte.net>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 89 |
1 files changed, 73 insertions, 16 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index f5309c0..b759ecc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,21 +1,78 @@ -project(playground-base) +############################################ +# # +# Improvements and feedbacks are welcome # +# # +# This file is released under GPL >= 3 # +# # +############################################ -find_package(KDE4 REQUIRED) -include (KDE4Defaults) -include(MacroOptionalAddSubdirectory) -# search packages used by KDE -#find_package (KDE4) -#include(KDE4Defaults) -#include(MacroLibrary) +cmake_minimum_required( VERSION 2.8 ) -#add_subdirectory( qrdf ) -#add_subdirectory( raptor ) -# needs Qt 3.x -#add_subdirectory( kbfx_plasma ) -#add_subdirectory( plasma ) -macro_optional_add_subdirectory( plasmagik ) -macro_optional_add_subdirectory( systemsettings ) +#### general package setup -#add_subdirectory( strigiplasmoid ) +project( tde-systemsettings ) +set( VERSION R14.1.0 ) + + +#### include essential cmake modules + +include( FindPkgConfig ) +include( CheckFunctionExists ) +include( CheckSymbolExists ) +include( CheckIncludeFile ) +include( CheckLibraryExists ) +include( CheckCSourceCompiles ) +include( CheckCXXSourceCompiles ) + + +#### include our cmake modules + +set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" ) +include( TDEMacros ) + + +##### setup install paths + +include( TDESetupPaths ) +tde_setup_paths( ) + + +##### optional stuff + +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_DOC "Build documentation" ${BUILD_ALL} ) +option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} ) + + +##### configure checks + +include( ConfigureChecks.cmake ) + + +###### global compiler settings + +add_definitions( -DHAVE_CONFIG_H -UTQT_NO_ASCII_CAST ) + +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" ) + + +##### directories + +add_subdirectory( systemsettings ) +tde_conditional_add_subdirectory( BUILD_DOC doc ) +tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po ) + + +##### write configure files + +configure_file( config.h.cmake config.h @ONLY ) |