diff options
author | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-03-05 23:54:57 +0000 |
---|---|---|
committer | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-03-05 23:54:57 +0000 |
commit | b67ece773ccb72aafa48a4117a9aae82531e3aaf (patch) | |
tree | 9dd91fcd5599ae865bea43313ed7068eb4ec0177 /CMakeLists.txt | |
parent | a21c1c9b1dca09b9ab3a56d60e6f4c7a253689f8 (diff) | |
download | tdepim-b67ece773ccb72aafa48a4117a9aae82531e3aaf.tar.gz tdepim-b67ece773ccb72aafa48a4117a9aae82531e3aaf.zip |
[kdepim]: initial cmake support for following subpackages: akregator, certmanager, kaddressbook, kalarm, kioslaves, kmail, ktnef, libemailfunctions, libkcal, libkdenetwork, libkdepim, libkmime, libkpgp, libkpimidentities, libksieve, mimelib
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1223912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 129 |
1 files changed, 129 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 000000000..d91a16b53 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,129 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +cmake_minimum_required( VERSION 2.6 ) + + +##### general package setup ##################### + +project( kdepim ) +set( PACKAGE kdepim ) +set( VERSION "3.5.13" ) + + +##### include essential cmake modules ########### + +include( FindPkgConfig ) +include( CheckIncludeFile ) +include( CheckTypeSize ) +# include( CheckCSourceRuns ) +include( CheckCSourceCompiles ) +include( CheckCXXSourceCompiles ) +include( CheckLibraryExists ) +# include( CheckFunctionExists ) +# include( CheckStructHasMember ) + + +##### 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_ARTS "Enable aRts support" OFF ) +# option( WITH_LDAP "Enable LDAP support" OFF ) +option( WITH_SASL "Enable cyrus-sasl support" OFF ) +option( WITH_NEWDISTRLISTS "Enable the new distribution lists" ON ) +option( WITH_GNOKII "Enable gnokii support" OFF ) + +if( NOT WITH_ARTS ) + set( WITHOUT_ARTS 1 ) +endif( ) + +if( WITH_NEWDISTRLISTS ) + set( KDEPIM_NEW_DISTRLISTS 1 ) +endif( ) + + +##### user requested modules #################### + +option( BUILD_ALL "Build all" OFF ) +option( BUILD_LIBKMIME "Build libkmime" ${BUILD_ALL} ) +option( BUILD_KTNEF "Build ktnef" ${BUILD_ALL} ) +option( BUILD_LIBKCAL "Build libkcal" ${BUILD_ALL} ) +option( BUILD_LIBKDEPIM "Build libkdepim" ${BUILD_ALL} ) +option( BUILD_LIBKPIMIDENTITIES "Build libkpimidentities" ${BUILD_ALL} ) +option( BUILD_LIBKDENETWORK "Build libkdenetwork" ${BUILD_ALL} ) +option( BUILD_CERTMANAGER "Build certmanager" ${BUILD_ALL} ) +option( BUILD_LIBKPGP "Build libkpgp" ${BUILD_ALL} ) +option( BUILD_MIMELIB "Build mimelib" ${BUILD_ALL} ) +option( BUILD_LIBKSIEVE "Build libksieve" ${BUILD_ALL} ) +option( BUILD_KIOSLAVES "Build kioslaves" ${BUILD_ALL} ) +option( BUILD_KMAIL "Build kmail" ${BUILD_ALL} ) +option( BUILD_AKREGATOR "Build akregator" ${BUILD_ALL} ) +option( BUILD_KALARM "Build kalarm" ${BUILD_ALL} ) +option( BUILD_KADDRESSBOOK "Build kaddressbook" ${BUILD_ALL} ) + + +##### configure checks ########################## + +include( ConfigureChecks.cmake ) + + +###### global compiler settings ################# + +add_definitions( + -DHAVE_CONFIG_H + ${TQT_CFLAGS_OTHER} +) + +set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -include tqt.h" ) +set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" ) +set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" ) + + +##### activate dependencies ##################### + +if( BUILD_LIBKCAL OR BUILD_LIBKDEPIM OR BUILD_LIBKPIMIDENTITIES OR BUILD_KIOSLAVES OR BUILD_KMAIL ) + add_subdirectory( libemailfunctions ) +endif() + + +##### kdepim directories ######################## + +tde_conditional_add_subdirectory( BUILD_LIBKMIME libkmime ) +tde_conditional_add_subdirectory( BUILD_KTNEF ktnef ) +tde_conditional_add_subdirectory( BUILD_LIBKCAL libkcal ) +tde_conditional_add_subdirectory( BUILD_LIBKDEPIM libkdepim ) +tde_conditional_add_subdirectory( BUILD_LIBKPIMIDENTITIES libkpimidentities ) +tde_conditional_add_subdirectory( BUILD_LIBKDENETWORK libkdenetwork ) +tde_conditional_add_subdirectory( BUILD_CERTMANAGER certmanager ) +tde_conditional_add_subdirectory( BUILD_LIBKPGP libkpgp ) +tde_conditional_add_subdirectory( BUILD_MIMELIB mimelib ) +tde_conditional_add_subdirectory( BUILD_LIBKSIEVE libksieve ) +tde_conditional_add_subdirectory( BUILD_KIOSLAVES kioslaves ) +tde_conditional_add_subdirectory( BUILD_KMAIL kmail ) +tde_conditional_add_subdirectory( BUILD_AKREGATOR akregator ) +tde_conditional_add_subdirectory( BUILD_KALARM kalarm ) +tde_conditional_add_subdirectory( BUILD_KADDRESSBOOK kaddressbook ) + + +##### write configure files ##################### + +configure_file( config.h.cmake config.h @ONLY ) |