diff --git a/CMakeLists.txt b/CMakeLists.txt index feb4ea557..b908b7194 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,105 +1,115 @@ project(kdepimlibs) set( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake/modules ) # search packages used by KDE find_package(KDE4 REQUIRED) include (KDE4Defaults) include (MacroLibrary) find_package(Boost REQUIRED) macro_log_feature(Boost_FOUND "boost" "Boost C++ Libraries" "http://www.boost.org" TRUE "1_33_0" "Needed by several critical PIM libraries.") if (NOT ONLY_KLEO) macro_optional_find_package(Sasl2) macro_log_feature(SASL2_FOUND "cyrus-sasl" "Cyrus SASL API" "http://asg.web.cmu.edu/sasl/sasl-library.html" FALSE "" "Needed to support authentication of logins. IMAP and Sieve kioslaves will not be built.") endif (NOT ONLY_KLEO) # gpgme is a hard dependency find_package(Gpgme REQUIRED) include (gpgme++/ConfigureChecks.cmake) include (ConfigureChecks.cmake) add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS}) include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES}) # TODO(move to kdesupport scripts) temporary way to support gpgme-qt under win32 if (EXISTS ${CMAKE_SOURCE_DIR}/gpgme-qt) message(STATUS "gpgme-qt for Windows will be compiled: ${CMAKE_SOURCE_DIR}/gpgme-qt") add_subdirectory(gpgme-qt) endif (EXISTS ${CMAKE_SOURCE_DIR}/gpgme-qt) macro_optional_add_subdirectory(doc) add_subdirectory(gpgme++) add_subdirectory(qgpgme) add_subdirectory(kmime) if (NOT ONLY_KLEO) find_package(Akonadi REQUIRED) if(Akonadi_FOUND) add_subdirectory(akonadi) endif(Akonadi_FOUND) # (gpgme++/qgpgme handle their conditions inside their own CMakeLists.txt files) add_subdirectory(kabc) add_subdirectory(kblog) add_subdirectory(kcal) add_subdirectory(kimap) add_subdirectory(kldap) add_subdirectory(kpimidentities) add_subdirectory(kpimutils) add_subdirectory(kresources) add_subdirectory(ktnef) add_subdirectory(kxmlrpcclient) add_subdirectory(mailtransport) add_subdirectory(syndication) add_subdirectory(kioslave) endif (NOT ONLY_KLEO) add_subdirectory(cmake) -# ...and append all library dependencies -string(REGEX REPLACE "gpgmepp" "gpgme++" qgpgme_LIB_DEPENDS "${qgpgme_LIB_DEPENDS}") -export_library_dependencies(${CMAKE_CURRENT_BINARY_DIR}/KDEPimLibsDependencies.cmake APPEND) -install( FILES ${CMAKE_CURRENT_BINARY_DIR}/KDEPimLibsDependencies.cmake DESTINATION ${DATA_INSTALL_DIR}/cmake/modules) - macro_display_feature_log() # taken from kdelibs/CMakeLists.txt, needed for having different install prefixes # for kdepimlibs and kdelibs # TODO: we probably need all the other variables here as well # we need the absolute directories where stuff will be installed too # but since the variables which contain the destinations can be relative # or absolute paths, we need this macro to make them all absoulte, Alex macro(MAKE_INSTALL_PATH_ABSOLUTE out in) - if (UNIX) - if ("${in}" MATCHES "^/.*") - set(${out} "${in}") - else ("${in}" MATCHES "^/.*") - set(${out} "\${KDE4_INSTALL_DIR}/${in}") - endif ("${in}" MATCHES "^/.*") - else (UNIX) - if ("${in}" MATCHES "^[a-zA-Z]:.*") - set(${out} "${in}") - else ("${in}" MATCHES "^[a-zA-Z]:.*") - set(${out} "\${KDE4_INSTALL_DIR}/${in}") - endif ("${in}" MATCHES "^[a-zA-Z]:.*") - endif (UNIX) + if (IS_ABSOLUTE "${in}") # IS_ABSOLUTE is new since cmake 2.4.8 + set(${out} "${in}") + else (IS_ABSOLUTE "${in}") + set(${out} "\${KDEPIMLIBS_INSTALL_DIR}/${in}") + endif (IS_ABSOLUTE "${in}") endmacro(MAKE_INSTALL_PATH_ABSOLUTE out in) -make_install_path_absolute(KDEPIMLIBS4_DBUS_INTERFACES_DIR ${DBUS_INTERFACES_INSTALL_DIR}) -make_install_path_absolute(KDEPIMLIBS4_DBUS_SERVICES_DIR ${DBUS_SERVICES_INSTALL_DIR}) -file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/KDEPimLibsDependencies.cmake " +make_install_path_absolute(KDEPIMLIBS_DBUS_INTERFACES_DIR ${DBUS_INTERFACES_INSTALL_DIR}) +make_install_path_absolute(KDEPIMLIBS_DBUS_SERVICES_DIR ${DBUS_SERVICES_INSTALL_DIR}) +make_install_path_absolute(KDEPIMLIBS_DATA_DIR ${DATA_INSTALL_DIR}) + +# This file will be picked up by "old" FindKdepimLibs.cmake from kdelibs, +# so write a message there to inform the developer that he should update kdelibs. Alex +file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/KDEPimLibsDependencies.cmake " +message(FATAL_ERROR "For using this version of kdepimlibs you need a newer version of kdelibs, please update.") +") + +# current FindKdepimLibs.cmake loads these two files, now the libraries from +# KdepimLibs are "exported" and then "imported" again when using FindKdepimLibs.cmake +# Alex. +file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/KDEPimLibsInformation.cmake " +if(NOT KDEPIMLIBS_INSTALL_DIR) + set(KDEPIMLIBS_INSTALL_DIR \"${CMAKE_INSTALL_PREFIX}\") +endif(NOT KDEPIMLIBS_INSTALL_DIR) -set(KDEPIMLIBS4_DBUS_INTERFACES_DIR \"${KDEPIMLIBS4_DBUS_INTERFACES_DIR}\") -set(KDEPIMLIBS4_DBUS_SERVICES_DIR \"${KDEPIMLIBS4_DBUS_SERVICES_DIR}\") +set(KDEPIMLIBS_DATA_DIR \"${KDEPIMLIBS_DATA_DIR}\") +set(KDEPIMLIBS_DBUS_INTERFACES_DIR \"${KDEPIMLIBS_DBUS_INTERFACES_DIR}\") +set(KDEPIMLIBS_DBUS_SERVICES_DIR \"${KDEPIMLIBS_DBUS_SERVICES_DIR}\") +# These two are just for compatibility with KDE 4.[01] +set(KDEPIMLIBS4_DBUS_INTERFACES_DIR \"\${KDEPIMLIBS_DBUS_INTERFACES_DIR}\") +set(KDEPIMLIBS4_DBUS_SERVICES_DIR \"\${KDEPIMLIBS_DBUS_SERVICES_DIR}\") \n") + +install(EXPORT kdepimlibsLibraryTargets DESTINATION ${DATA_INSTALL_DIR}/cmake/modules FILE KDEPimLibsLibraryTargets.cmake ) +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/KDEPimLibsInformation.cmake ${CMAKE_CURRENT_BINARY_DIR}/KDEPimLibsDependencies.cmake + DESTINATION ${DATA_INSTALL_DIR}/cmake/modules) + diff --git a/akonadi/CMakeLists.txt b/akonadi/CMakeLists.txt index 75cc7c1f4..cbaa90df5 100644 --- a/akonadi/CMakeLists.txt +++ b/akonadi/CMakeLists.txt @@ -1,205 +1,208 @@ project(akonadi-kde) if (KDE4_BUILD_TESTS) # only with this macro the AKONADI_TESTS_EXPORT macro will do something add_definitions(-DCOMPILING_TESTS) endif (KDE4_BUILD_TESTS) add_subdirectory( kabc ) add_subdirectory( kmime ) add_subdirectory( tests ) include_directories( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${QT_QTDBUS_INCLUDE_DIR} ${Boost_INCLUDE_DIR} ${KDE4_INCLUDE_DIR} ${AKONADI_INCLUDE_DIR} ${AKONADI_INCLUDE_DIR}/akonadi/private ) # libakonadi-kde set( akonadikde_LIB_SRC entity.cpp # keep it at top to not break enable-final agentbase.cpp agentfilterproxymodel.cpp agentinstance.cpp agentinstancecreatejob.cpp agentinstancemodel.cpp agentinstancewidget.cpp agentmanager.cpp agenttype.cpp agenttypemodel.cpp agenttypewidget.cpp agenttypedialog.cpp attribute.cpp attributefactory.cpp cachepolicy.cpp cachepolicypage.cpp changerecorder.cpp collection.cpp collectioncopyjob.cpp collectioncreatejob.cpp collectiondeletejob.cpp collectionfilterproxymodel.cpp collectiongeneralpropertiespage.cpp collectionfetchjob.cpp collectionmodel.cpp collectionmodel_p.cpp collectionmodifyjob.cpp collectionpathresolver.cpp collectionpropertiesdialog.cpp collectionpropertiespage.cpp collectionrightsattribute.cpp collectionselectjob.cpp collectionstatistics.cpp collectionstatisticsdelegate.cpp collectionstatisticsjob.cpp collectionstatisticsmodel.cpp collectionsync.cpp collectionview.cpp control.cpp entitydisplayattribute.cpp #entitysortfilterproxymodel.cpp erroroverlay.cpp expungejob.cpp flatcollectionproxymodel.cpp item.cpp itemcreatejob.cpp itemcopyjob.cpp itemdeletejob.cpp itemfetchjob.cpp itemfetchscope.cpp itemmodel.cpp itemmonitor.cpp itemmovejob.cpp itemserializer.cpp itemserializerplugin.cpp itemmodifyjob.cpp itemsync.cpp itemview.cpp job.cpp linkjob.cpp monitor.cpp monitor_p.cpp pastehelper.cpp protocolhelper.cpp resourcebase.cpp resourcescheduler.cpp searchcreatejob.cpp selftestdialog.cpp session.cpp servermanager.cpp standardactionmanager.cpp subscriptionjob.cpp subscriptionchangeproxymodel.cpp subscriptiondialog.cpp subscriptionmodel.cpp transactionjobs.cpp transactionsequence.cpp unlinkjob.cpp # Temporary until ported to Qt-plugin framework pluginloader.cpp ) # DBus interfaces and adaptors set(akonadi_xml ${AKONADI_DBUS_INTERFACES_DIR}/org.freedesktop.Akonadi.NotificationManager.xml) set_source_files_properties(${akonadi_xml} PROPERTIES INCLUDE "notificationmessage_p.h") qt4_add_dbus_interface( akonadikde_LIB_SRC ${akonadi_xml} notificationmanagerinterface ) qt4_add_dbus_interfaces( akonadikde_LIB_SRC ${AKONADI_DBUS_INTERFACES_DIR}/org.freedesktop.Akonadi.AgentManager.xml ) qt4_add_dbus_interfaces( akonadikde_LIB_SRC ${AKONADI_DBUS_INTERFACES_DIR}/org.freedesktop.Akonadi.Tracer.xml ) qt4_add_dbus_adaptor( akonadikde_LIB_SRC ${AKONADI_DBUS_INTERFACES_DIR}/org.freedesktop.Akonadi.Resource.xml resourcebase.h Akonadi::ResourceBase ) qt4_add_dbus_adaptor( akonadikde_LIB_SRC ${AKONADI_DBUS_INTERFACES_DIR}/org.freedesktop.Akonadi.Agent.Status.xml agentbase.h Akonadi::AgentBase ) qt4_add_dbus_adaptor( akonadikde_LIB_SRC ${AKONADI_DBUS_INTERFACES_DIR}/org.freedesktop.Akonadi.Agent.Control.xml agentbase.h Akonadi::AgentBase ) kde4_add_ui_files( akonadikde_LIB_SRC cachepolicypage.ui collectiongeneralpropertiespage.ui subscriptiondialog.ui controlprogressindicator.ui selftestdialog.ui ) kde4_add_library( akonadi-kde SHARED ${akonadikde_LIB_SRC} ) target_link_libraries( akonadi-kde ${KDE4_SOLID_LIBS} ${QT_QTNETWORK_LIBRARY} ${QT_QTDBUS_LIBRARY} ${QT_QTSQL_LIBRARY} ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS} ${AKONADI_COMMON_LIBRARIES} ) +target_link_libraries( akonadi-kde LINK_INTERFACE_LIBRARIES ${KDE4_KDEUI_LIBS} ${QT_QTDBUS_LIBRARY} ${QT_QTCORE_LIBRARY} ) + + set_target_properties( akonadi-kde PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} ) -install( TARGETS akonadi-kde ${INSTALL_TARGETS_DEFAULT_ARGS} ) +install( TARGETS akonadi-kde EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS} ) ########### install files ############### install( FILES akonadi_export.h agentbase.h agentfilterproxymodel.h agentinstance.h agentinstancecreatejob.h agentinstancemodel.h agentinstancewidget.h agentmanager.h agenttype.h agenttypemodel.h agenttypewidget.h agenttypedialog.h attribute.h attributefactory.h cachepolicy.h changerecorder.h collection.h collectioncopyjob.h collectioncreatejob.h collectiondeletejob.h collectionfilterproxymodel.h collectionfetchjob.h collectionmodel.h collectionmodifyjob.h collectionpropertiesdialog.h collectionpropertiespage.h collectionstatisticsdelegate.h collectionstatisticsmodel.h collectionstatistics.h collectionstatisticsjob.h collectionview.h control.h entity.h entitydisplayattribute.h # entitysortfilterproxymodel.h item.h itemcreatejob.h itemcopyjob.h itemdeletejob.h itemfetchjob.h itemfetchscope.h itemmodel.h itemmodifyjob.h itemmonitor.h itemmovejob.h itempayloadinternals_p.h itemserializerplugin.h itemsync.h itemview.h job.h linkjob.h monitor.h resourcebase.h searchcreatejob.h session.h servermanager.h standardactionmanager.h transactionjobs.h transactionsequence.h unlinkjob.h DESTINATION ${INCLUDE_INSTALL_DIR}/akonadi COMPONENT Devel ) install( FILES collectionpathresolver_p.h DESTINATION ${INCLUDE_INSTALL_DIR}/akonadi/private COMPONENT Devel ) install( FILES kcfg2dbus.xsl DESTINATION ${DATA_INSTALL_DIR}/akonadi-kde ) diff --git a/akonadi/kabc/CMakeLists.txt b/akonadi/kabc/CMakeLists.txt index 420bde4cf..dcad5beb6 100644 --- a/akonadi/kabc/CMakeLists.txt +++ b/akonadi/kabc/CMakeLists.txt @@ -1,26 +1,26 @@ include_directories( ${CMAKE_SOURCE_DIR}/ ${QT_QTDBUS_INCLUDE_DIR} ) set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII ${KDE4_ENABLE_EXCEPTIONS}" ) ########### next target ############### set( kabcakonadi_LIB_SRC contactparts.cpp ) kde4_add_library( akonadi-kabc SHARED ${kabcakonadi_LIB_SRC} ) target_link_libraries( akonadi-kabc akonadi-kde ${QT_QTGUI_LIBRARY} ${KDE4_KDECORE_LIBS} ${KDE4_KABC_LIBS} ) set_target_properties( akonadi-kabc PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} ) -install(TARGETS akonadi-kabc ${INSTALL_TARGETS_DEFAULT_ARGS}) +install(TARGETS akonadi-kabc EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS}) ########### install files ############### install( FILES akonadi-kabc_export.h contactparts.h DESTINATION ${INCLUDE_INSTALL_DIR}/akonadi/kabc COMPONENT Devel ) diff --git a/akonadi/kmime/CMakeLists.txt b/akonadi/kmime/CMakeLists.txt index 3575d4f1b..0275c7766 100644 --- a/akonadi/kmime/CMakeLists.txt +++ b/akonadi/kmime/CMakeLists.txt @@ -1,33 +1,33 @@ include_directories( ${CMAKE_SOURCE_DIR}/ ${QT_QTDBUS_INCLUDE_DIR} ${Boost_INCLUDE_DIR} ) set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII ${KDE4_ENABLE_EXCEPTIONS}" ) ########### next target ############### set( kmimeakonadi_LIB_SRC messagemodel.cpp messageparts.cpp messagethreadingattribute.cpp messagethreaderproxymodel.cpp ) kde4_add_library( akonadi-kmime SHARED ${kmimeakonadi_LIB_SRC} ) target_link_libraries( akonadi-kmime akonadi-kde kmime ${QT_QTGUI_LIBRARY} ${KDE4_KDECORE_LIBS} ${KDE4_KIO_LIBS} ) set_target_properties( akonadi-kmime PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} ) -install(TARGETS akonadi-kmime ${INSTALL_TARGETS_DEFAULT_ARGS}) +install(TARGETS akonadi-kmime EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS}) ########### install files ############### install( FILES akonadi-kmime_export.h messagemodel.h messageparts.h messagethreadingattribute.h messagethreaderproxymodel.h DESTINATION ${INCLUDE_INSTALL_DIR}/akonadi/kmime COMPONENT Devel ) diff --git a/gpgme++/CMakeLists.txt b/gpgme++/CMakeLists.txt index 7f34547dc..42c383932 100644 --- a/gpgme++/CMakeLists.txt +++ b/gpgme++/CMakeLists.txt @@ -1,139 +1,139 @@ project( gpgmepp ) include_directories( ${GPGME_INCLUDES} ${Boost_INCLUDE_DIR} ) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}") configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config-gpgme++.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-gpgme++.h ) ## gpgme comes in three flavours on each of the platforms: ## Windows: gpgme, gpgme-glib, gpgme-qt ## Unix: gpgme, gpgme-pthread, gpgme-pth ## We're building corresponding gpgme++ flavours set(gpgme_LIB_SRCS exception.cpp context.cpp key.cpp trustitem.cpp data.cpp callbacks.cpp eventloopinteractor.cpp editinteractor.cpp keylistresult.cpp keygenerationresult.cpp importresult.cpp decryptionresult.cpp verificationresult.cpp signingresult.cpp encryptionresult.cpp engineinfo.cpp gpgsetexpirytimeeditinteractor.cpp gpgsetownertrusteditinteractor.cpp gpgsignkeyeditinteractor.cpp gpgadduserideditinteractor.cpp ) set( _gpgmepp_version 2.0.2 ) set( _gpgmepp_soversion 2 ) set( GPGMEPP_INCLUDE ${INCLUDE_INSTALL_DIR} ${GPGME_INCLUDES} ${Boost_INCLUDE_DIR} ) if ( GPGME_VANILLA_FOUND ) kde4_add_library( gpgmepp SHARED ${gpgme_LIB_SRCS} context_vanilla.cpp ) target_link_libraries( gpgmepp ${GPGME_VANILLA_LIBRARIES} ) set_target_properties( gpgmepp PROPERTIES VERSION ${_gpgmepp_version} SOVERSION ${_gpgmepp_soversion} OUTPUT_NAME gpgme++ ) get_target_property( GPGMEPP_VANILLA_LIBRARY gpgmepp LOCATION ) - install(TARGETS gpgmepp ${INSTALL_TARGETS_DEFAULT_ARGS} ) + install(TARGETS gpgmepp EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS} ) endif ( GPGME_VANILLA_FOUND ) if ( GPGME_GLIB_FOUND ) kde4_add_library( gpgmepp-glib SHARED ${gpgme_LIB_SRCS} context_glib.cpp ) target_link_libraries( gpgmepp-glib ${GPGME_GLIB_LIBRARIES} ) set_target_properties( gpgmepp-glib PROPERTIES VERSION ${_gpgmepp_version} SOVERSION ${_gpgmepp_soversion} OUTPUT_NAME gpgme++-glib DEFINE_SYMBOL MAKE_GPGME___LIB ) get_target_property( GPGMEPP_GLIB_LIBRARY gpgmepp LOCATION ) - install(TARGETS gpgmepp-glib ${INSTALL_TARGETS_DEFAULT_ARGS} ) + install(TARGETS gpgmepp-glib EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS} ) endif ( GPGME_GLIB_FOUND ) if ( GPGME_QT_FOUND ) kde4_add_library( gpgmepp-qt SHARED ${gpgme_LIB_SRCS} context_qt.cpp ) target_link_libraries( gpgmepp-qt ${GPGME_QT_LIBRARIES} ) if(WIN32) target_link_libraries( gpgmepp-qt ${GPGME_VANILLA_LIBRARIES} ) endif(WIN32) set_target_properties( gpgmepp-qt PROPERTIES VERSION ${_gpgmepp_version} SOVERSION ${_gpgmepp_soversion} OUTPUT_NAME gpgme++-qt DEFINE_SYMBOL MAKE_GPGME___LIB ) get_target_property( GPGMEPP_QT_LIBRARY gpgmepp LOCATION ) - install(TARGETS gpgmepp-qt ${INSTALL_TARGETS_DEFAULT_ARGS} ) + install(TARGETS gpgmepp-qt EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS} ) endif ( GPGME_QT_FOUND ) if ( GPGME_PTHREAD_FOUND ) kde4_add_library( gpgmepp-pthread SHARED ${gpgme_LIB_SRCS} context_vanilla.cpp ) target_link_libraries( gpgmepp-pthread ${GPGME_PTHREAD_LIBRARIES} ) set_target_properties( gpgmepp-pthread PROPERTIES VERSION ${_gpgmepp_version} SOVERSION ${_gpgmepp_soversion} OUTPUT_NAME gpgme++-pthread DEFINE_SYMBOL MAKE_GPGME___LIB ) get_target_property( GPGMEPP_PTHREAD_LIBRARY gpgmepp LOCATION ) - install(TARGETS gpgmepp-pthread ${INSTALL_TARGETS_DEFAULT_ARGS} ) + install(TARGETS gpgmepp-pthread EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS} ) endif ( GPGME_PTHREAD_FOUND ) if ( GPGME_PTH_FOUND ) kde4_add_library( gpgmepp-pth SHARED ${gpgme_LIB_SRCS} context_vanilla.cpp ) target_link_libraries( gpgmepp-pth ${GPGME_PTH_LIBRARIES} ) set_target_properties( gpgmepp-pth PROPERTIES VERSION ${_gpgmepp_version} SOVERSION ${_gpgmepp_soversion} OUTPUT_NAME gpgme++-pth DEFINE_SYMBOL MAKE_GPGME___LIB ) get_target_property( GPGMEPP_PTH_LIBRARY gpgmepp LOCATION ) - install(TARGETS gpgmepp-pth ${INSTALL_TARGETS_DEFAULT_ARGS} ) + install(TARGETS gpgmepp-pth EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS} ) endif ( GPGME_PTH_FOUND ) include( CMakeExportBuildSettings ) # this writes way too much, but do we care? EXPORT_LIBRARY_DEPENDENCIES( ${CMAKE_CURRENT_BINARY_DIR}/GpgmeppLibraryDepends.cmake ) ########### install files ############### configure_file(${CMAKE_CURRENT_SOURCE_DIR}/GpgmeppConfig.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/GpgmeppConfig.cmake @ONLY ) if ( GPGME_FOUND ) add_subdirectory( interfaces ) install(FILES global.h error.h exception.h context.h key.h trustitem.h eventloopinteractor.h editinteractor.h data.h gpgmefw.h result.h keylistresult.h keygenerationresult.h importresult.h decryptionresult.h verificationresult.h signingresult.h encryptionresult.h notation.h engineinfo.h gpgsetexpirytimeeditinteractor.h gpgsetownertrusteditinteractor.h gpgsignkeyeditinteractor.h gpgadduserideditinteractor.h gpgme++_export.h DESTINATION ${INCLUDE_INSTALL_DIR}/gpgme++ COMPONENT Devel ) install( FILES ${CMAKE_CURRENT_BINARY_DIR}/GpgmeppConfig.cmake ${CMAKE_CURRENT_BINARY_DIR}/GpgmeppLibraryDepends.cmake DESTINATION ${LIB_INSTALL_DIR}/gpgmepp ) endif ( GPGME_FOUND ) diff --git a/kabc/CMakeLists.txt b/kabc/CMakeLists.txt index 6aa89a50d..f8443493e 100644 --- a/kabc/CMakeLists.txt +++ b/kabc/CMakeLists.txt @@ -1,137 +1,138 @@ project(kabc) include_directories( ${KDE4_KIO_INCLUDES} ) add_definitions(${QDBUS_DEFINITIONS} -DKDE_DEFAULT_DEBUG_AREA=5700 ) # these apply also for all subdirs include_directories( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/kab ${CMAKE_CURRENT_BINARY_DIR}/kab ${CMAKE_CURRENT_SOURCE_DIR}/vcardparser ) # kabc/vcardparser/Makefile.am: vcards set(vcards_STAT_SRCS vcardparser/vcard.cpp vcardparser/vcardline.cpp vcardparser/vcardparser.cpp ) add_subdirectory( vcardparser ) add_subdirectory( formats ) add_subdirectory( plugins ) add_subdirectory( tests ) #add_subdirectory( scripts ) file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/scripts) add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/field.cpp ${CMAKE_CURRENT_BINARY_DIR}/addressee.h ${CMAKE_CURRENT_BINARY_DIR}/addressee.cpp WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/scripts COMMAND ${PERL_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/scripts/makeaddressee DEPENDS scripts/makeaddressee scripts/addressee.src.cpp scripts/addressee.src.h scripts/entrylist scripts/field.src.cpp ) ########### next target ############### set(kabc_LIB_SRCS address.cpp addressbook.cpp ${CMAKE_CURRENT_BINARY_DIR}/addressee.cpp ${CMAKE_CURRENT_BINARY_DIR}/addressee.h ${CMAKE_CURRENT_BINARY_DIR}/field.cpp addresseedialog.cpp distributionlist.cpp distributionlistdialog.cpp emailselectdialog.cpp errorhandler.cpp formatfactory.cpp geo.cpp key.cpp phonenumber.cpp picture.cpp plugin.cpp resource.cpp resourceabc.cpp resourcecached.cpp secrecy.cpp sound.cpp stdaddressbook.cpp vcardconverter.cpp timezone.cpp vcardformat.cpp ldifconverter.cpp addresslineedit.cpp addresseelist.cpp vcardtool.cpp addresseehelper.cpp lock.cpp locknull.cpp sortmode.cpp ${vcards_STAT_SRCS} contactgroup.cpp contactgrouptool.cpp ) kde4_add_library(kabc SHARED ${kabc_LIB_SRCS}) target_link_libraries(kabc kresources kldap ${KDE4_KDEUI_LIBS} ${KDE4_KDECORE_LIBS}) +target_link_libraries(kabc LINK_INTERFACE_LIBRARIES kresources ${KDE4_KDEUI_LIBS}) set_target_properties(kabc PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} ) -install(TARGETS kabc ${INSTALL_TARGETS_DEFAULT_ARGS}) +install(TARGETS kabc EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS}) ########### install files ############### install( FILES countrytransl.map DESTINATION ${DATA_INSTALL_DIR}/kabc ) install( FILES kabc_manager.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kresources ) install( FILES kabc_export.h address.h addressbook.h ${CMAKE_CURRENT_BINARY_DIR}/addressee.h addresseelist.h addresseedialog.h distributionlist.h distributionlistdialog.h emailselectdialog.h errorhandler.h field.h format.h formatfactory.h format.h geo.h key.h phonenumber.h picture.h plugin.h resource.h resourceabc.h resourcecached.h secrecy.h sound.h stdaddressbook.h timezone.h vcardformat.h vcardconverter.h ldifconverter.h addresslineedit.h addresseelist.h lock.h locknull.h sortmode.h contactgroup.h contactgrouptool.h DESTINATION ${INCLUDE_INSTALL_DIR}/kabc COMPONENT Devel) diff --git a/kabc/plugins/file/CMakeLists.txt b/kabc/plugins/file/CMakeLists.txt index abc9fdf96..33e1bf2a4 100644 --- a/kabc/plugins/file/CMakeLists.txt +++ b/kabc/plugins/file/CMakeLists.txt @@ -1,33 +1,33 @@ include_directories( ${CMAKE_SOURCE_DIR}/kabc ) ########### kabc_file_core library (also used by kaddressbook) ############### set(kabc_file_core_SRCS resourcefile.cpp resourcefileconfig.cpp ) kde4_add_library(kabc_file_core SHARED ${kabc_file_core_SRCS}) target_link_libraries(kabc_file_core ${KDE4_KIO_LIBS} kabc kcal kresources) set_target_properties(kabc_file_core PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} ) -install(TARGETS kabc_file_core ${INSTALL_TARGETS_DEFAULT_ARGS}) +install(TARGETS kabc_file_core EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS}) ########### kabc_file plugin ############### set(kabc_file_SRCS resourcefileplugin.cpp) kde4_add_plugin(kabc_file ${kabc_file_SRCS}) target_link_libraries(kabc_file ${QT_QTGUI_LIBRARY} ${KDE4_KDECORE_LIBS} kabc kabc_file_core kresources) install(TARGETS kabc_file DESTINATION ${PLUGIN_INSTALL_DIR} ) ########### install files ############### install( FILES file.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kabc ) diff --git a/kblog/CMakeLists.txt b/kblog/CMakeLists.txt index 6cabbb442..b6dccdc9b 100644 --- a/kblog/CMakeLists.txt +++ b/kblog/CMakeLists.txt @@ -1,34 +1,34 @@ project(kblog) include_directories(${Boost_INCLUDE_DIR}) add_subdirectory( tests ) ########### next target ############### set(kblog_LIB_SRCS blog.cpp blogpost.cpp blogcomment.cpp blogmedia.cpp blogger1.cpp gdata.cpp # livejournal.cpp metaweblog.cpp movabletype.cpp wordpressbuggy.cpp ) kde4_add_library(kblog SHARED ${kblog_LIB_SRCS}) target_link_libraries(kblog kxmlrpcclient syndication ${KDE4_KIO_LIBS} kcal ) set_target_properties(kblog PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} ) -install(TARGETS kblog ${INSTALL_TARGETS_DEFAULT_ARGS} ) +install(TARGETS kblog EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS} ) ########### install files ############## install( FILES kblog_export.h blog.h blogpost.h blogcomment.h blogmedia.h blogger1.h gdata.h metaweblog.h movabletype.h wordpressbuggy.h DESTINATION ${INCLUDE_INSTALL_DIR}/kblog COMPONENT Devel) diff --git a/kcal/CMakeLists.txt b/kcal/CMakeLists.txt index 321215552..519af6802 100644 --- a/kcal/CMakeLists.txt +++ b/kcal/CMakeLists.txt @@ -1,180 +1,181 @@ project(kcal) macro_optional_find_package(Libical) macro_log_feature(LIBICAL_FOUND "libical" "Reference implementation of the iCalendar data type and serialization format" "http://sourceforge.net/projects/freeassociation" TRUE "0.33" "Required for the critical PIM kcal library.") if(NOT LIBICAL_FOUND) macro_display_feature_log() endif(NOT LIBICAL_FOUND) add_definitions(-DKDE_DEFAULT_DEBUG_AREA=5800) include (ConfigureChecks.cmake) if(KDE4_BUILD_TESTS) add_definitions(-DCOMPILING_TESTS) endif(KDE4_BUILD_TESTS) include_directories( ${LIBICAL_INCLUDE_DIRS} ${LIBICAL_INCLUDE_DIRS}/libical ${CMAKE_CURRENT_SOURCE_DIR}/versit ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/kabc ${CMAKE_BINARY_DIR}/kabc ${KDE4_INCLUDE_DIR} ) set(libversit_SRCS ${CMAKE_SOURCE_DIR}/kcal/versit/vcc.c ${CMAKE_SOURCE_DIR}/kcal/versit/vobject.c ) ########### next target ############### set(kcal_LIB_SRCS ${libversit_SRCS} incidencebase.cpp incidence.cpp journal.cpp todo.cpp event.cpp freebusy.cpp freebusyperiod.cpp attendee.cpp attachment.cpp recurrencerule.cpp recurrence.cpp alarm.cpp customproperties.cpp calendar.cpp calendarlocal.cpp calformat.cpp vcalformat.cpp icalformat.cpp icalformat_p.cpp incidenceformatter.cpp vcaldrag.cpp icaldrag.cpp exceptions.cpp scheduler.cpp imipscheduler.cpp dummyscheduler.cpp calfilter.cpp person.cpp period.cpp duration.cpp dndfactory.cpp calstorage.cpp filestorage.cpp compat.cpp resourcecalendar.cpp resourcelocal.cpp resourcelocalconfig.cpp resourcelocaldir.cpp resourcelocaldirconfig.cpp resourcecached.cpp resourcecachedconfig.cpp calendarresources.cpp qtopiaformat.cpp htmlexport.cpp calendarnull.cpp freebusyurlstore.cpp confirmsavedialog.cpp icaltimezones.cpp kresult.cpp ) kde4_add_kcfg_files(kcal_LIB_SRCS htmlexportsettings.kcfgc ) kde4_add_library(kcal SHARED ${kcal_LIB_SRCS}) target_link_libraries(kcal ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS} ${QT_QTXML_LIBRARY} kresources kabc kpimutils ${LIBICAL_LIBRARIES}) +target_link_libraries(kcal LINK_INTERFACE_LIBRARIES kresources kabc) set_target_properties(kcal PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION}) -install(TARGETS kcal ${INSTALL_TARGETS_DEFAULT_ARGS} COMPONENT Devel) +install(TARGETS kcal EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS}) ########### next target ############### set(kcal_local_PART_SRCS resourcelocal_plugin.cpp ) kde4_add_plugin(kcal_local ${kcal_local_PART_SRCS}) target_link_libraries(kcal_local ${QT_QTGUI_LIBRARY} ${KDE4_KDECORE_LIBS} kcal kresources ) install(TARGETS kcal_local DESTINATION ${PLUGIN_INSTALL_DIR}) ########### next target ############### set(kcal_localdir_PART_SRCS resourcelocaldir_plugin.cpp ) kde4_add_plugin(kcal_localdir ${kcal_localdir_PART_SRCS}) target_link_libraries(kcal_localdir ${QT_QTGUI_LIBRARY} ${KDE4_KDECORE_LIBS} kcal kresources) install(TARGETS kcal_localdir DESTINATION ${PLUGIN_INSTALL_DIR}) add_subdirectory( tests ) ########### install files ############### install( FILES local.desktop localdir.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kcal) install( FILES alarm.h attachment.h attendee.h calendar.h calendarlocal.h calendarnull.h calendarresources.h calfilter.h calformat.h calstorage.h confirmsavedialog.h customproperties.h dndfactory.h duration.h event.h exceptions.h filestorage.h freebusy.h freebusycache.h freebusyperiod.h freebusyurlstore.h ${CMAKE_CURRENT_BINARY_DIR}/htmlexportsettings.h htmlexport.h icaldrag.h icalformat.h icaltimezones.h imipscheduler.h incidencebase.h incidence.h incidenceformatter.h journal.h kcal_export.h kcalversion.h listbase.h period.h person.h qtopiaformat.h recurrencerule.h recurrence.h resourcecached.h resourcecachedconfig.h resourcecalendar.h resourcelocalconfig.h resourcelocaldirconfig.h resourcelocaldir.h resourcelocal.h scheduler.h sortablelist.h todo.h vcaldrag.h vcalformat.h kresult.h DESTINATION ${INCLUDE_INSTALL_DIR}/kcal COMPONENT Devel) install( FILES kcal_manager.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kresources) diff --git a/kimap/CMakeLists.txt b/kimap/CMakeLists.txt index fd68c5a3b..dce644b49 100644 --- a/kimap/CMakeLists.txt +++ b/kimap/CMakeLists.txt @@ -1,21 +1,21 @@ project(kimap) add_definitions( -DKDE_DEFAULT_DEBUG_AREA=5327 ) add_subdirectory( tests ) set(kimap_LIB_SRCS rfccodecs.cpp) kde4_add_library(kimap SHARED ${kimap_LIB_SRCS}) target_link_libraries(kimap ${KDE4_KDECORE_LIBS}) set_target_properties(kimap PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} ) -install(TARGETS kimap ${INSTALL_TARGETS_DEFAULT_ARGS}) +install(TARGETS kimap EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS}) ########### install files ############### install( FILES kimap_export.h rfccodecs.h DESTINATION ${INCLUDE_INSTALL_DIR}/kimap COMPONENT Devel) diff --git a/kldap/CMakeLists.txt b/kldap/CMakeLists.txt index 2a72411b3..510986f1e 100644 --- a/kldap/CMakeLists.txt +++ b/kldap/CMakeLists.txt @@ -1,83 +1,83 @@ project(kldap) include(CheckFunctionExists) include(CheckSymbolExists) add_definitions( -DKDE_DEFAULT_DEBUG_AREA=5322 ) macro_optional_find_package(Ldap) macro_log_feature(LDAP_FOUND "OpenLDAP" "LDAP (Lightweight Directory Access Protocol) libraries" "http://www.openldap.org" FALSE "" "Needed to provide LDAP functionality in KDE" ) #look for Sasl2 in the top-level CMakeLists.txt file now #macro_optional_find_package(Sasl2) #macro_log_feature(SASL2_FOUND "cyrus-sasl" "Cyrus SASL API" "http://asg.web.cmu.edu/sasl/sasl-library.html" FALSE "" "Needed to support authentication of logins" ) check_include_files(sys/time.h HAVE_SYS_TIME_H) set(kldap_EXTRA_LIBS) set(kldap_EXTRA_INCLUDES) if (LDAP_FOUND) set(kldap_EXTRA_LIBS ${LDAP_LIBRARIES}) set(kldap_EXTRA_INCLUDES ${LDAP_INCLUDE_DIR}) set(CMAKE_REQUIRED_INCLUDES lber.h ldap.h) set(CMAKE_REQUIRED_LIBRARIES ${LDAP_LIBRARIES}) check_function_exists(ldap_start_tls_s HAVE_LDAP_START_TLS_S) check_function_exists(ldap_initialize HAVE_LDAP_INITIALIZE) check_function_exists(ber_memfree HAVE_BER_MEMFREE) check_function_exists(ldap_unbind_ext HAVE_LDAP_UNBIND_EXT) check_function_exists(ldap_extended_operation HAVE_LDAP_EXTENDED_OPERATION) check_function_exists(ldap_extended_operation_s HAVE_LDAP_EXTENDED_OPERATION_S) check_symbol_exists(ldap_extended_operation ldap.h HAVE_LDAP_EXTENDED_OPERATION_PROTOTYPE) check_symbol_exists(ldap_extended_operation_s ldap.h HAVE_LDAP_EXTENDED_OPERATION_S_PROTOTYPE) endif (LDAP_FOUND) if (SASL2_FOUND) set(kldap_EXTRA_LIBS ${kldap_EXTRA_LIBS} ${SASL2_LIBRARIES}) set(kldap_EXTRA_INCLUDES ${kldap_EXTRA_INCLUDES} ${SASL2_INCLUDE_DIR}) endif (SASL2_FOUND) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/kldap_config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/kldap_config.h ) add_subdirectory(tests) ########### next target ############### set(kldap_LIB_SRCS ber.cpp ldif.cpp ldapurl.cpp ldapserver.cpp ldapobject.cpp ldapconnection.cpp ldapoperation.cpp ldapcontrol.cpp ldapsearch.cpp ldapconfigwidget.cpp ldapdn.cpp ldapmodelnode_p.cpp ldapmodel.cpp ldapmodel_p.cpp ldapstructureproxymodel.cpp ldapattributeproxymodel.cpp) kde4_add_library(kldap SHARED ${kldap_LIB_SRCS}) include_directories( ${kldap_EXTRA_INCLUDES} ) target_link_libraries(kldap ${KDE4_KIO_LIBS} ${KDE4_KDECORE_LIBS} ${kldap_EXTRA_LIBS} ) set_target_properties(kldap PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION}) -install(TARGETS kldap ${INSTALL_TARGETS_DEFAULT_ARGS}) +install(TARGETS kldap EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS}) ########### install files ############### install( FILES ber.h kldap_export.h ldapdefs.h ldif.h ldapurl.h ldapserver.h ldapobject.h ldapconnection.h ldapoperation.h ldapconfigwidget.h ldapcontrol.h ldapsearch.h ldapdn.h ldapmodel.h ldapstructureproxymodel.h ldapattributeproxymodel.h DESTINATION ${INCLUDE_INSTALL_DIR}/kldap COMPONENT Devel) diff --git a/kmime/CMakeLists.txt b/kmime/CMakeLists.txt index 434de5e78..d893edcd1 100644 --- a/kmime/CMakeLists.txt +++ b/kmime/CMakeLists.txt @@ -1,53 +1,53 @@ add_subdirectory( tests ) include_directories( ${CMAKE_SOURCE_DIR}/libkdepim/ ) include(CheckTimezone) configure_file (config-kmime.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kmime.h) ########### next target ############### set(kmime_LIB_SRCS kmime_charfreq.cpp kmime_util.cpp kmime_mdn.cpp kmime_codecs.cpp kmime_codec_base64.cpp kmime_codec_uuencode.cpp kmime_codec_qp.cpp kmime_codec_identity.cpp kmime_parsers.cpp kmime_header_parsing.cpp kmime_content.cpp kmime_contentindex.cpp kmime_headers.cpp kmime_message.cpp kmime_newsarticle.cpp kmime_dateformatter.cpp boolflags.cpp kautodeletehash.cpp ) kde4_add_library(kmime SHARED ${kmime_LIB_SRCS}) target_link_libraries(kmime ${KDE4_KDECORE_LIBS} ) set_target_properties(kmime PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION}) -install(TARGETS kmime ${INSTALL_TARGETS_DEFAULT_ARGS}) +install(TARGETS kmime EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS}) install( FILES boolflags.h kmime_export.h kmime_charfreq.h kmime_codecs.h kmime_content.h kmime_contentindex.h kmime_header_parsing.h kmime_headers.h kmime_message.h kmime_mdn.h kmime_newsarticle.h kmime_dateformatter.h kmime_util.h DESTINATION ${INCLUDE_INSTALL_DIR}/kmime COMPONENT Devel) diff --git a/kpimidentities/CMakeLists.txt b/kpimidentities/CMakeLists.txt index 7bf25b153..c18ea9597 100644 --- a/kpimidentities/CMakeLists.txt +++ b/kpimidentities/CMakeLists.txt @@ -1,24 +1,24 @@ set(kpimidentities_LIB_SRCS identitymanager.cpp identity.cpp signature.cpp signatureconfigurator.cpp identitycombo.cpp) add_subdirectory( tests ) qt4_add_dbus_adaptor(kpimidentities_LIB_SRCS org.kde.pim.IdentityManager.xml identitymanager.h KPIMIdentities::IdentityManager ) kde4_add_library(kpimidentities SHARED ${kpimidentities_LIB_SRCS}) target_link_libraries(kpimidentities ${QT_AND_KDECORE_LIBS} kpimutils ${KDE4_KIO_LIBS} ) set_target_properties(kpimidentities PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} ) -install(TARGETS kpimidentities ${INSTALL_TARGETS_DEFAULT_ARGS}) +install(TARGETS kpimidentities EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS}) install(FILES org.kde.pim.IdentityManager.xml DESTINATION ${DBUS_INTERFACES_INSTALL_DIR}) install(FILES identity.h signature.h signatureconfigurator.h identitymanager.h identitycombo.h kpimidentities_export.h DESTINATION ${INCLUDE_INSTALL_DIR}/kpimidentities COMPONENT Devel) diff --git a/kpimutils/CMakeLists.txt b/kpimutils/CMakeLists.txt index a9607fd19..60338ac10 100644 --- a/kpimutils/CMakeLists.txt +++ b/kpimutils/CMakeLists.txt @@ -1,23 +1,23 @@ project(kpimutils) add_definitions( -DKDE_DEFAULT_DEBUG_AREA=5321 ) add_subdirectory( tests ) include_directories( ../kmime ) set(kpimutils_LIB_SRCS email.cpp linklocator.cpp spellingfilter.cpp kfileio.cpp) kde4_add_library(kpimutils SHARED ${kpimutils_LIB_SRCS}) target_link_libraries(kpimutils ${KDE4_KDEUI_LIBS} ${KDE4_KUTILS_LIBS} kmime) set_target_properties(kpimutils PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} ) -install(TARGETS kpimutils ${INSTALL_TARGETS_DEFAULT_ARGS}) +install(TARGETS kpimutils EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS}) ########### install files ############### install(FILES kpimutils_export.h email.h linklocator.h spellingfilter.h kfileio.h DESTINATION ${INCLUDE_INSTALL_DIR}/kpimutils COMPONENT Devel) diff --git a/kresources/CMakeLists.txt b/kresources/CMakeLists.txt index 4791121a5..7471fc8d6 100644 --- a/kresources/CMakeLists.txt +++ b/kresources/CMakeLists.txt @@ -1,62 +1,62 @@ project(kresources) add_subdirectory( tests ) include_directories( ${KDE4_KIO_INCLUDES} ) add_definitions(${QDBUS_DEFINITIONS} -DKDE_DEFAULT_DEBUG_AREA=5650) ########### next target ############### set(kresources_LIB_SRCS resource.cpp factory.cpp managerimpl.cpp configwidget.cpp configdialog.cpp selectdialog.cpp configpage.cpp idmapper.cpp ) qt4_add_dbus_adaptor( kresources_LIB_SRCS org.kde.KResourcesManager.xml managerimpl.h KRES::ManagerImpl ) kde4_add_library(kresources SHARED ${kresources_LIB_SRCS}) target_link_libraries(kresources ${KDE4_KIO_LIBS} ) set_target_properties(kresources PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} ) -install(TARGETS kresources ${INSTALL_TARGETS_DEFAULT_ARGS}) +install(TARGETS kresources EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS}) ########### next target ############### set(kcm_kresources_PART_SRCS kcmkresources.cpp ) kde4_add_plugin(kcm_kresources ${kcm_kresources_PART_SRCS}) target_link_libraries(kcm_kresources ${KDE4_KDEUI_LIBS} kresources ) install(TARGETS kcm_kresources DESTINATION ${PLUGIN_INSTALL_DIR} ) ########### install files ############### install( FILES kresources.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) install( FILES kresources_plugin.desktop kresources_manager.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR} ) install( FILES kresources_export.h resource.h configwidget.h factory.h managerimpl.h manager.h selectdialog.h configdialog.h configpage.h idmapper.h DESTINATION ${INCLUDE_INSTALL_DIR}/kresources COMPONENT Devel) install( FILES org.kde.KResourcesManager.xml DESTINATION ${DBUS_INTERFACES_INSTALL_DIR} ) diff --git a/ktnef/CMakeLists.txt b/ktnef/CMakeLists.txt index 2ae02e3b1..04e744acf 100644 --- a/ktnef/CMakeLists.txt +++ b/ktnef/CMakeLists.txt @@ -1,41 +1,41 @@ project(ktnef) add_definitions( -DKDE_DEFAULT_DEBUG_AREA=5975 ) add_subdirectory( tests ) ########### next target ############### include_directories( ${CMAKE_SOURCE_DIR}/kabc ${CMAKE_BINARY_DIR}/kabc ${CMAKE_SOURCE_DIR}/kcal ) set(ktnef_LIB_SRCS ktnefparser.cpp ktnefproperty.cpp ktnefattach.cpp mapi.cpp ktnefpropertyset.cpp ktnefmessage.cpp ktnefwriter.cpp lzfu.cpp formatter.cpp ) kde4_add_library(ktnef SHARED ${ktnef_LIB_SRCS}) target_link_libraries(ktnef ${KDE4_KIO_LIBS} kabc kcal) set_target_properties(ktnef PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION}) -install(TARGETS ktnef ${INSTALL_TARGETS_DEFAULT_ARGS}) +install(TARGETS ktnef EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS}) ########### install files ############### install( FILES ktnef_export.h ktnefparser.h ktnefattach.h ktnefproperty.h ktnefpropertyset.h ktnefmessage.h ktnefwriter.h ktnefdefs.h formatter.h DESTINATION ${INCLUDE_INSTALL_DIR}/ktnef COMPONENT Devel) diff --git a/kxmlrpcclient/CMakeLists.txt b/kxmlrpcclient/CMakeLists.txt index 9c863ab5e..065d07eac 100644 --- a/kxmlrpcclient/CMakeLists.txt +++ b/kxmlrpcclient/CMakeLists.txt @@ -1,21 +1,21 @@ project(kxmlrpcclient) add_subdirectory( tests ) ########### next target ############### set(kxmlrpcclient_LIB_SRCS client.cpp query.cpp) kde4_add_library(kxmlrpcclient SHARED ${kxmlrpcclient_LIB_SRCS}) target_link_libraries(kxmlrpcclient ${KDE4_KIO_LIBS}) set_target_properties(kxmlrpcclient PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} ) -install(TARGETS kxmlrpcclient ${INSTALL_TARGETS_DEFAULT_ARGS}) +install(TARGETS kxmlrpcclient EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS}) ########### install files ############### install( FILES kxmlrpcclient_export.h client.h DESTINATION ${INCLUDE_INSTALL_DIR}/kxmlrpcclient COMPONENT Devel) diff --git a/mailtransport/CMakeLists.txt b/mailtransport/CMakeLists.txt index d69f5edae..2103f998f 100644 --- a/mailtransport/CMakeLists.txt +++ b/mailtransport/CMakeLists.txt @@ -1,57 +1,57 @@ add_subdirectory( kconf_update ) add_subdirectory( tests ) add_definitions("-DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII") add_definitions( -DKDE_DEFAULT_DEBUG_AREA=5324 ) set(mailtransport_lib_srcs transport.cpp transportcombobox.cpp transportconfigdialog.cpp transportjob.cpp transportmanager.cpp transportmanagementwidget.cpp sendmailjob.cpp smtpjob.cpp precommandjob.cpp legacydecrypt.cpp socket.cpp servertest.cpp ) kde4_add_ui_files(mailtransport_lib_srcs smtpsettings.ui sendmailsettings.ui transportmanagementwidget.ui ) kde4_add_kcfg_files(mailtransport_lib_srcs transportbase.kcfgc) kde4_add_library(mailtransport SHARED ${mailtransport_lib_srcs}) target_link_libraries(mailtransport ${KDE4_KIO_LIBS}) set_target_properties(mailtransport PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} ) -install(TARGETS mailtransport ${INSTALL_TARGETS_DEFAULT_ARGS}) +install(TARGETS mailtransport EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS}) install(FILES mailtransport.kcfg DESTINATION ${KCFG_INSTALL_DIR}) set(mailtransport_kcm_srcs configmodule.cpp) kde4_add_plugin(kcm_mailtransport ${mailtransport_kcm_srcs}) target_link_libraries(kcm_mailtransport ${KDE4_KDEUI_LIBS} mailtransport) install(TARGETS kcm_mailtransport DESTINATION ${PLUGIN_INSTALL_DIR}) install(FILES kcm_mailtransport.desktop DESTINATION ${SERVICES_INSTALL_DIR}) install( FILES mailtransport_export.h sendmailjob.h smtpjob.h transport.h ${CMAKE_CURRENT_BINARY_DIR}/transportbase.h transportcombobox.h transportconfigdialog.h transportjob.h transportmanagementwidget.h transportmanager.h servertest.h DESTINATION ${INCLUDE_INSTALL_DIR}/mailtransport COMPONENT Devel) diff --git a/qgpgme/CMakeLists.txt b/qgpgme/CMakeLists.txt index 21ab4cee9..a7b6c1c0d 100644 --- a/qgpgme/CMakeLists.txt +++ b/qgpgme/CMakeLists.txt @@ -1,61 +1,61 @@ set( _any_gpgme_found false ) set( _qgpgme_version 1.0.1 ) set( _qgpgme_soversion 1 ) if ( WIN32 AND GPGME_VANILLA_FOUND ) # on Windows, we require gpgme(-vanilla), which is thread-safe, # and we don't provide gpgme-qt support set( _any_gpgme_found true ) set( _qgpgme_libgpgme gpgmepp ) #set( _qgpgme_extra_src eventloopinteractor_win.cpp ) endif ( WIN32 AND GPGME_VANILLA_FOUND ) if ( NOT WIN32 AND GPGME_PTHREAD_FOUND ) # on Unix, we requrie gpgme-pthread (for convenience, since vanilla # gpgme isn't thread-aware, and we don't want to restrict clients # of qgpgme to non-threaded useage of gpgme) set( _any_gpgme_found true ) set( _qgpgme_libgpgme gpgmepp-pthread ) set( _qgpgme_extra_src eventloopinteractor.cpp eventloopinteractor_unix.cpp ) set( _qgpgme_extra_headers eventloopinteractor.h ) endif ( NOT WIN32 AND GPGME_PTHREAD_FOUND ) # build / install only if any useable gpgme was found: if ( _any_gpgme_found ) include_directories( ${GPGME_INCLUDES} ${CMAKE_SOURCE_DIR}/gpgme++ ${Boost_INCLUDE_DIR} ) add_subdirectory( tests ) set( qgpgme_LIB_SRCS dataprovider.cpp ${_qgpgme_extra_src} ) kde4_add_library( qgpgme SHARED ${qgpgme_LIB_SRCS} ) target_link_libraries( qgpgme ${QT_QTCORE_LIBRARY} ${_qgpgme_libgpgme} ) set_target_properties( qgpgme PROPERTIES VERSION ${_qgpgme_version} SOVERSION ${_qgpgme_soversion} ) - install( TARGETS qgpgme ${INSTALL_TARGETS_DEFAULT_ARGS}) + install( TARGETS qgpgme EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS}) install( FILES qgpgme_export.h ${_qgpgme_extra_headers} dataprovider.h DESTINATION ${INCLUDE_INSTALL_DIR}/qgpgme COMPONENT Devel ) endif ( _any_gpgme_found ) diff --git a/syndication/CMakeLists.txt b/syndication/CMakeLists.txt index b82b0640a..9a9a552b2 100644 --- a/syndication/CMakeLists.txt +++ b/syndication/CMakeLists.txt @@ -1,133 +1,133 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}") add_subdirectory( tests ) add_subdirectory( atom ) add_subdirectory( rdf ) add_subdirectory( rss2 ) include_directories( ${Boost_INCLUDE_DIR} ) ########### next target ############### set(librss2local_SRCS ./rss2/category.cpp ./rss2/cloud.cpp ./rss2/document.cpp ./rss2/enclosure.cpp ./rss2/image.cpp ./rss2/item.cpp ./rss2/parser.cpp ./rss2/source.cpp ./rss2/textinput.cpp ./rss2/tools_p.cpp ) set(librdflocal_la_SRCS ./rdf/parser.cpp ./rdf/dublincorevocab.cpp ./rdf/dublincore.cpp ./rdf/syndicationvocab.cpp ./rdf/syndicationinfo.cpp ./rdf/contentvocab.cpp ./rdf/item.cpp ./rdf/image.cpp ./rdf/textinput.cpp ./rdf/document.cpp ./rdf/rssvocab.cpp ./rdf/node.cpp ./rdf/property.cpp ./rdf/literal.cpp ./rdf/resource.cpp ./rdf/model.cpp ./rdf/modelmaker.cpp ./rdf/rdfvocab.cpp ./rdf/sequence.cpp ./rdf/statement.cpp ./rdf/resourcewrapper.cpp ./rdf/nodevisitor.cpp ) set(libatomlocal_SRCS ./atom/category.cpp ./atom/constants.cpp ./atom/content.cpp ./atom/document.cpp ./atom/entry.cpp ./atom/generator.cpp ./atom/link.cpp ./atom/parser.cpp ./atom/person.cpp ./atom/source.cpp ./atom/atomtools.cpp ) set(libmapperrss2local_SRCS ./mapper/feedrss2impl.cpp ./mapper/itemrss2impl.cpp ./mapper/enclosurerss2impl.cpp ./mapper/categoryrss2impl.cpp ./mapper/imagerss2impl.cpp ) set(libmapperrdflocal_SRCS ./mapper/feedrdfimpl.cpp ./mapper/itemrdfimpl.cpp ./mapper/imagerdfimpl.cpp ) set(libmapperatomlocal_SRCS ./mapper/feedatomimpl.cpp ./mapper/itematomimpl.cpp ./mapper/enclosureatomimpl.cpp ./mapper/categoryatomimpl.cpp ) set(syndication_LIB_SRCS ${librss2local_SRCS} ${librdflocal_la_SRCS} ${libatomlocal_SRCS} ${libmappercommonlocal_SRCS} ${libmapperrss2local_SRCS} ${libmapperrdflocal_SRCS} ${libmapperatomlocal_SRCS} documentsource.cpp documentvisitor.cpp elementwrapper.cpp constants.cpp feed.cpp item.cpp enclosure.cpp category.cpp image.cpp tools.cpp person.cpp personimpl.cpp loader.cpp global.cpp dataretriever.cpp specificitemvisitor.cpp specificitem.cpp specificdocument.cpp abstractparser.cpp) kde4_add_library(syndication SHARED ${syndication_LIB_SRCS}) target_link_libraries(syndication ${KDE4_KIO_LIBS} ) set_target_properties(syndication PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} ) -install(TARGETS syndication ${INSTALL_TARGETS_DEFAULT_ARGS}) +install(TARGETS syndication EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS}) ########### install files ############### install( FILES ksyndication_export.h syndication.h specificdocument.h abstractparser.h parsercollection.h documentvisitor.h documentsource.h elementwrapper.h item.h feed.h category.h image.h enclosure.h person.h global.h dataretriever.h loader.h constants.h mapper.h specificitem.h specificitemvisitor.h tools.h DESTINATION ${INCLUDE_INSTALL_DIR}/syndication COMPONENT Devel)