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.
181 lines
6.8 KiB
181 lines
6.8 KiB
#################################################
|
|
#
|
|
# (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( CheckCSourceCompiles )
|
|
include( CheckCXXSourceCompiles )
|
|
include( CheckLibraryExists )
|
|
|
|
|
|
##### 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_SASL "Enable cyrus-sasl support" OFF )
|
|
option( WITH_NEWDISTRLISTS "Enable the new distribution lists" ON )
|
|
option( WITH_GNOKII "Enable gnokii support" OFF )
|
|
option( WITH_EXCHANGE "Enable Microsoft Exchange 2000 support" OFF )
|
|
option( WITH_EGROUPWARE "Enable egroupware support" OFF )
|
|
option( WITH_KOLAB "Enable kolab support" OFF )
|
|
option( WITH_SLOX "Enable slox support" OFF )
|
|
option( WITH_GROUPWISE "Enable groupwise support" OFF )
|
|
option( WITH_FEATUREPLAN "Enable featureplan support" OFF )
|
|
option( WITH_GROUPDAV "Enable groupdav support" OFF )
|
|
option( WITH_BIRTHDAYS "Enable birthdays support" OFF )
|
|
option( WITH_NEWEXCHANGE "Enable newexchange support" OFF )
|
|
option( WITH_SCALIX "Enable scalix support" OFF )
|
|
option( WITH_CALDAV "Enable caldav support" OFF )
|
|
option( WITH_CARDDAV "Enable carddav support" OFF )
|
|
option( WITH_INDEXLIB "Enable indexlib support (in kmail)" 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_INDEXLIB "Build indexlib" ${BUILD_ALL} )
|
|
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_LIBKPIMEXCHANGE "Build libkpimexchange" ${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} )
|
|
option( BUILD_KORN "Build korn" ${BUILD_ALL} )
|
|
option( BUILD_KGANTT "Build kgantt" ${BUILD_ALL} )
|
|
option( BUILD_LIBKHOLIDAYS "Build libkholidays" ${BUILD_ALL} )
|
|
option( BUILD_KORGANIZER "Build korganizer" ${BUILD_ALL} )
|
|
option( BUILD_PLUGINS "Build plugins" ${BUILD_ALL} )
|
|
option( BUILD_KNOTES "Build knotes" ${BUILD_ALL} )
|
|
option( BUILD_KODE "Build kode" ${BUILD_ALL} )
|
|
option( BUILD_KRESOURCES "Build kresources" ${BUILD_ALL} )
|
|
option( BUILD_WIZARDS "Build wizards" ${BUILD_ALL} )
|
|
option( BUILD_KABC "Build kabc" ${BUILD_ALL} )
|
|
option( BUILD_KONSOLEKALENDAR "Build konsolekalendar" ${BUILD_ALL} )
|
|
option( BUILD_KMAILCVT "Build kmailcvt" ${BUILD_ALL} )
|
|
option( BUILD_KARM "Build karm" ${BUILD_ALL} )
|
|
option( BUILD_KFILE_PLUGINS "Build kfile-plugins" ${BUILD_ALL} )
|
|
option( BUILD_KANDY "Build kandy" ${BUILD_ALL} )
|
|
option( BUILD_KNODE "Build knode" ${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 OR BUILD_KNODE )
|
|
add_subdirectory( libemailfunctions )
|
|
endif()
|
|
|
|
if( BUILD_KADDRESSBOOK OR (BUILD_KRESOURCES AND (WITH_EGROUPWARE OR WITH_BIRTHDAYS)) )
|
|
add_subdirectory( kaddressbook/common )
|
|
endif()
|
|
|
|
|
|
##### kdepim directories ########################
|
|
|
|
tde_conditional_add_subdirectory( BUILD_INDEXLIB indexlib )
|
|
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 pixmaps )
|
|
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_LIBKPIMEXCHANGE libkpimexchange )
|
|
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 )
|
|
tde_conditional_add_subdirectory( BUILD_KORN korn )
|
|
tde_conditional_add_subdirectory( BUILD_KGANTT kgantt )
|
|
tde_conditional_add_subdirectory( BUILD_LIBKHOLIDAYS libkholidays )
|
|
tde_conditional_add_subdirectory( BUILD_KORGANIZER kdgantt )
|
|
tde_conditional_add_subdirectory( BUILD_KORGANIZER korganizer )
|
|
tde_conditional_add_subdirectory( BUILD_PLUGINS plugins )
|
|
tde_conditional_add_subdirectory( BUILD_KNOTES knotes )
|
|
tde_conditional_add_subdirectory( BUILD_KODE kode )
|
|
tde_conditional_add_subdirectory( BUILD_KRESOURCES kresources )
|
|
tde_conditional_add_subdirectory( BUILD_WIZARDS wizards )
|
|
tde_conditional_add_subdirectory( BUILD_KABC kabc )
|
|
tde_conditional_add_subdirectory( BUILD_KONSOLEKALENDAR konsolekalendar )
|
|
tde_conditional_add_subdirectory( BUILD_KMAILCVT kmailcvt )
|
|
tde_conditional_add_subdirectory( BUILD_KARM karm )
|
|
tde_conditional_add_subdirectory( BUILD_KFILE_PLUGINS kfile-plugins )
|
|
tde_conditional_add_subdirectory( BUILD_KANDY kandy )
|
|
tde_conditional_add_subdirectory( BUILD_KNODE knode )
|
|
|
|
|
|
##### write configure files #####################
|
|
|
|
configure_file( config.h.cmake config.h @ONLY )
|