diff options
author | Alexander Golubev <fatzer2@gmail.com> | 2013-10-15 16:26:13 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2013-10-15 16:26:13 +0200 |
commit | 1a22301f46db807500b77119ae0132b9a3f876c5 (patch) | |
tree | ebf70d60bf7341685d1c4f6eb945e8d36baab9b2 /CMakeLists.txt | |
parent | 6d9f2a4901eda474254a5d62a8c3701c2067ea58 (diff) | |
download | tdeaddons-1a22301f46db807500b77119ae0132b9a3f876c5.tar.gz tdeaddons-1a22301f46db807500b77119ae0132b9a3f876c5.zip |
Initial cmake conversion
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 111 |
1 files changed, 111 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..39f9aec --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,111 @@ +################################################# +# +# (C) 2013 Alexander Golubev +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +cmake_minimum_required( VERSION 2.8 ) + + +##### general package setup ##################### + +project( tdeaddons ) +set( VERSION R14.0.0 ) + + +##### include essential cmake modules ########### + +include( FindPkgConfig ) +include( CheckIncludeFile ) +include( CheckLibraryExists ) +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 sane optional stuff" OFF ) +option( WITH_ARTS "Enable aRts support" ${WITH_ALL_OPTIONS} ) +option( WITH_XMMS "Enable xmms support" OFF ) +option( WITH_TEST "Build tests" OFF ) + + +##### options comments ########################## + +# WITH_XMMS affects kicker-applets +# WITH_XMMS description enables kicker multimedia-control applet to interact +# with xmms +# WITH_ARTS affects konq-plugins/sidebar/mediaplayer +# WITH_TEST affects konq-plugins/fsview + +# NOTE: WITH_XMMS supports only obsolte xmms version 1 + +##### user requested modules #################### + +option( BUILD_ALL "Build all" OFF ) + +# option( BUILD_ATLANTIKDESIGNER "Build ???" ${BUILD_ALL} ) # need tdegames +option( BUILD_DOC "Build documentation" ${BUILD_ALL} ) +option( BUILD_KADDRESSBOOK_PLUGINS "Build kaddressbook plugins" ${BUILD_ALL} ) # requires tdepim +option( BUILD_KATE_PLUGINS "Build kate plugins" ${BUILD_ALL} ) +option( BUILD_KICKER_APPLETS "Build kicker applets" ${BUILD_ALL} ) +option( BUILD_KNEWSTICKER_SCRIPTS "Install additional knewsticker scripts" ${BUILD_ALL} ) +option( BUILD_KONQ_PLUGINS "Build konqueror plugins" ${BUILD_ALL} ) +option( BUILD_KSIG "Build kde email signature manager" ${BUILD_ALL} ) +# option( BUILD_NOATUN_PLUGINS "Build noatun plugins" ${BUILD_ALL} ) # need tdemultimedia +option( BUILD_RENAMEDLG_PLUGINS "Build KRenameDlg plugins" ${BUILD_ALL} ) +option( BUILD_TDEFILE_PLUGINS "Build additional tdefileplugins" ${BUILD_ALL} ) + + +##### configure checks ########################## + +include( ConfigureChecks.cmake ) + + +###### global compiler settings ################# + +add_definitions( + -DHAVE_CONFIG_H +) + +set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" ) +set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" ) +set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" ) + +if( WITH_TEST ) + enable_testing() +endif( WITH_TEST ) + +##### tdeaddons directories ##################### + +# tde_conditional_add_subdirectory( BUILD_ATLANTIKDESIGNER atlantikdesigner ) +tde_conditional_add_subdirectory( BUILD_DOC doc ) +tde_conditional_add_subdirectory( BUILD_KADDRESSBOOK_PLUGINS kaddressbook-plugins ) +tde_conditional_add_subdirectory( BUILD_KATE_PLUGINS kate ) +tde_conditional_add_subdirectory( BUILD_KICKER_APPLETS kicker-applets ) +tde_conditional_add_subdirectory( BUILD_KNEWSTICKER_SCRIPTS knewsticker-scripts ) +tde_conditional_add_subdirectory( BUILD_KONQ_PLUGINS konq-plugins ) +tde_conditional_add_subdirectory( BUILD_KSIG ksig ) +# tde_conditional_add_subdirectory( BUILD_NOATUN_PLUGINS noatun-plugins ) +tde_conditional_add_subdirectory( BUILD_RENAMEDLG_PLUGINS renamedlgplugins) +tde_conditional_add_subdirectory( BUILD_TDEFILE_PLUGINS tdefile-plugins) + +##### write configure files ##################### + +configure_file( config.h.cmake config.h @ONLY ) |