[kdepim] kontact ported to cmake

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1225846 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
samelian 14 years ago
parent 87b2ea0ac1
commit c6499535d3

@ -108,6 +108,7 @@ option( BUILD_KANDY "Build kandy" ${BUILD_ALL} )
option( BUILD_KNODE "Build knode" ${BUILD_ALL} ) option( BUILD_KNODE "Build knode" ${BUILD_ALL} )
option( BUILD_KMOBILE "Build kmobile" ${BUILD_ALL} ) option( BUILD_KMOBILE "Build kmobile" ${BUILD_ALL} )
option( BUILD_DOC "Build doc" ${BUILD_ALL} ) option( BUILD_DOC "Build doc" ${BUILD_ALL} )
option( BUILD_KONTACT "Build kontact" ${BUILD_ALL} )
# deprecated # deprecated
option( BUILD_KITCHENSYNC "Build kitchensync" OFF ) option( BUILD_KITCHENSYNC "Build kitchensync" OFF )
@ -181,6 +182,7 @@ tde_conditional_add_subdirectory( BUILD_KNODE knode )
tde_conditional_add_subdirectory( BUILD_KMOBILE kmobile ) tde_conditional_add_subdirectory( BUILD_KMOBILE kmobile )
tde_conditional_add_subdirectory( BUILD_KITCHENSYNC kitchensync ) tde_conditional_add_subdirectory( BUILD_KITCHENSYNC kitchensync )
tde_conditional_add_subdirectory( BUILD_DOC doc ) tde_conditional_add_subdirectory( BUILD_DOC doc )
tde_conditional_add_subdirectory( BUILD_KONTACT kontact )
##### write configure files ##################### ##### write configure files #####################

@ -57,7 +57,7 @@ if( WITH_GNOKII AND (BUILD_KADDRESSBOOK OR BUILD_KMOBILE) )
endif( ) endif( )
if( BUILD_LIBKDENETWORK OR BUILD_CERTMANAGER OR BUILD_KMAIL OR BUILD_KADDRESSBOOK ) if( BUILD_LIBKDENETWORK OR BUILD_CERTMANAGER OR BUILD_KMAIL OR BUILD_KADDRESSBOOK OR BUILD_KONTACT )
if( NOT HAVE_GPGME_0_4_BRANCH ) if( NOT HAVE_GPGME_0_4_BRANCH )
message( STATUS "checking for 'gpgme'" ) message( STATUS "checking for 'gpgme'" )

@ -0,0 +1,24 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
tde_import( libkdenetwork )
tde_import( libkmime )
tde_import( ktnef )
tde_import( libkcal )
tde_import( libkdepim )
tde_import( certmanager )
tde_import( libkpimidentities )
add_subdirectory( interfaces )
add_subdirectory( plugins )
add_subdirectory( src )
add_subdirectory( pics )
add_subdirectory( profiles )

@ -0,0 +1,46 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### headers ###################################
install( FILES
core.h plugin.h summary.h
DESTINATION ${INCLUDE_INSTALL_DIR}/kontact )
##### other data ################################
install( FILES
kontactplugin.desktop
DESTINATION ${SERVICETYPES_INSTALL_DIR} )
##### kpinterfaces (shared) #########################
tde_add_library( kpinterfaces SHARED AUTOMOC
SOURCES
core.cpp plugin.cpp summary.cpp uniqueapphandler.cpp
VERSION 1.0.0
LINK kdepim-shared
DESTINATION ${LIB_INSTALL_DIR}
)

@ -0,0 +1,12 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
add_subdirectory( icons )

@ -0,0 +1,12 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
tde_install_icons( )

@ -0,0 +1,24 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
# NOTE kpilot was moved from kdepim
add_subdirectory( kaddressbook )
add_subdirectory( kmail )
add_subdirectory( knotes )
add_subdirectory( korganizer )
add_subdirectory( summary )
add_subdirectory( weather )
add_subdirectory( knode )
add_subdirectory( newsticker )
add_subdirectory( specialdates )
add_subdirectory( akregator )
add_subdirectory( karm )

@ -0,0 +1,40 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/../../interfaces
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/akregator/src
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES
akregatorplugin.desktop akregatorplugin3.2.desktop
DESTINATION ${SERVICES_INSTALL_DIR}/kontact )
##### libkontact_akregator (module) #############
tde_add_kpart( libkontact_akregator AUTOMOC
SOURCES
akregator_plugin.cpp
${CMAKE_SOURCE_DIR}/akregator/src/akregator_partiface.stub
LINK kpinterfaces-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

@ -0,0 +1,44 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/../../interfaces
${CMAKE_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/libkdepim
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES
kaddressbookplugin.desktop
DESTINATION ${SERVICES_INSTALL_DIR}/kontact )
##### libkontact_kaddressbookplugin (module) ####
set( KDE3_DCOPIDL_EXECUTABLE ${KDE3_DCOPIDLNG_EXECUTABLE} )
tde_add_kpart( libkontact_kaddressbookplugin AUTOMOC
SOURCES
kaddressbook_plugin.cpp
${CMAKE_SOURCE_DIR}/kaddressbook/kaddressbookiface.stub
${CMAKE_SOURCE_DIR}/kmail/kmailIface.stub
LINK kpinterfaces-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

@ -0,0 +1,36 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/../../interfaces
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES karmplugin.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kontact )
##### libkontact_karm (module) ##################
tde_add_kpart( libkontact_karm AUTOMOC
SOURCES
karm_plugin.cpp ${CMAKE_SOURCE_DIR}/karm/karmdcopiface.stub
LINK kpinterfaces-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

@ -0,0 +1,92 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/../../interfaces
${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}/kmail
${CMAKE_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/libkdepim
${CMAKE_SOURCE_DIR}/kmail
${CMAKE_SOURCE_DIR}/certmanager/lib
${CMAKE_SOURCE_DIR}/libkdenetwork
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
${GPGME_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES kcmkmailsummary.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( FILES kmailplugin.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kontact )
##### helper ####################################
macro( process_kcfg _who _out _path _kcfg _kcfgc )
add_custom_command( OUTPUT ${CMAKE_BINARY_DIR}/${_path}/${_out}
COMMAND
mkdir -p ${CMAKE_BINARY_DIR}/${_path}
COMMAND ${KDE3_KCFGC_EXECUTABLE}
-d ${CMAKE_BINARY_DIR}/${_path}
${CMAKE_SOURCE_DIR}/${_path}/${_kcfg}
${CMAKE_SOURCE_DIR}/${_path}/${_kcfgc}
DEPENDS
${CMAKE_SOURCE_DIR}/${_path}/${_kcfg}
${CMAKE_SOURCE_DIR}/${_path}/${_kcfgc} )
set_property( SOURCE ${_who} APPEND
PROPERTY OBJECT_DEPENDS ${CMAKE_BINARY_DIR}/${_path}/${_out} )
endmacro()
##### libkontact_kmailplugin (module) ###########
set( KDE3_DCOPIDL_EXECUTABLE ${KDE3_DCOPIDLNG_EXECUTABLE} )
process_kcfg( kmail_plugin.cpp globalsettings_base.h kmail
kmail.kcfg globalsettings_base.kcfgc )
add_custom_command( OUTPUT ${CMAKE_BINARY_DIR}/kmail/templatesconfiguration_base.h
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/kmail
COMMAND ${CMAKE_COMMAND}
-DQT_UIC_EXECUTABLE:FILEPATH=${QT_UIC_EXECUTABLE}
-DTDE_QTPLUGINS_DIR:FILEPATH=${TDE_QTPLUGINS_DIR}
-DUI_FILE:FILEPATH=${CMAKE_SOURCE_DIR}/kmail/templatesconfiguration_base.ui
-P ${CMAKE_MODULE_PATH}/tde_uic.cmake
DEPENDS
${CMAKE_BINARY_DIR}/kmail/globalsettings_base.h
${CMAKE_SOURCE_DIR}/kmail/templatesconfiguration_base.ui )
set_property( SOURCE kmail_plugin.cpp APPEND
PROPERTY OBJECT_DEPENDS ${CMAKE_BINARY_DIR}/kmail/templatesconfiguration_base.h )
tde_add_kpart( libkontact_kmailplugin AUTOMOC
SOURCES
kmail_plugin.cpp summarywidget.cpp summarywidget.skel
${CMAKE_SOURCE_DIR}/kmail/kmailIface.stub
LINK kpinterfaces-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### kcm_kmailsummary (module) #################
tde_add_kpart( kcm_kmailsummary AUTOMOC
SOURCES kcmkmailsummary.cpp
LINK kdeui-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

@ -0,0 +1,36 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/../../interfaces
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES knodeplugin.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kontact )
##### libkontact_knodeplugin (module) ###########
tde_add_kpart( libkontact_knodeplugin AUTOMOC
SOURCES
knode_plugin.cpp ${CMAKE_SOURCE_DIR}/knode/knodeiface.stub
LINK kpinterfaces-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

@ -0,0 +1,43 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
tde_import( knotes )
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/../../interfaces
${CMAKE_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES knotesplugin.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kontact )
install( FILES knotes_part.rc DESTINATION ${DATA_INSTALL_DIR}/knotes )
##### libkontact_knotesplugin (module) ##########
set( KDE3_DCOPIDL_EXECUTABLE ${KDE3_DCOPIDLNG_EXECUTABLE} )
tde_add_kpart( libkontact_knotesplugin AUTOMOC
SOURCES
knotes_plugin.cpp knotes_part.cpp summarywidget.cpp knotetip.cpp
${CMAKE_SOURCE_DIR}/knotes/KNotesIface.skel
LINK kpinterfaces-shared knotes-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

@ -0,0 +1,89 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
tde_import( libkholidays )
tde_import( korganizer )
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/../../interfaces
${CMAKE_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/korganizer
${CMAKE_SOURCE_DIR}/korganizer/interfaces
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES
korganizerplugin.desktop todoplugin.desktop journalplugin.desktop
DESTINATION ${SERVICES_INSTALL_DIR}/kontact )
install( FILES
kcmkorgsummary.desktop
DESTINATION ${SERVICES_INSTALL_DIR} )
##### libkontact_korganizerplugin (module) ######
tde_add_kpart( libkontact_korganizerplugin AUTOMOC
SOURCES
korganizerplugin.cpp summarywidget.cpp
${CMAKE_SOURCE_DIR}/korganizer/kcalendariface.stub
${CMAKE_SOURCE_DIR}/korganizer/korganizeriface.stub
LINK common-static kpinterfaces-shared korganizer_calendar-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### libkontact_todoplugin (module) ############
tde_add_kpart( libkontact_todoplugin AUTOMOC
SOURCES
todoplugin.cpp todosummarywidget.cpp
${CMAKE_SOURCE_DIR}/korganizer/kcalendariface.stub
${CMAKE_SOURCE_DIR}/korganizer/korganizeriface.stub
LINK common-static kpinterfaces-shared korganizer-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### libkontact_journalplugin (module) #########
tde_add_kpart( libkontact_journalplugin AUTOMOC
SOURCES
journalplugin.cpp
${CMAKE_SOURCE_DIR}/korganizer/kcalendariface.stub
LINK common-static kpinterfaces-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### kcm_korgsummary (module) ##################
tde_add_kpart( kcm_korgsummary AUTOMOC
SOURCES kcmkorgsummary.cpp
LINK kdeui-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### common (static) ###########################
tde_add_library( common STATIC_PIC
SOURCES korg_uniqueapp.cpp
)

@ -0,0 +1,46 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/../../interfaces
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES kcmkontactknt.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( FILES newstickerplugin.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kontact )
##### libkontact_newstickerplugin (module) ######
tde_add_kpart( libkontact_newstickerplugin AUTOMOC
SOURCES
newsticker_plugin.cpp summarywidget.cpp summarywidget.skel
LINK kpinterfaces-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### kcm_kontactknt (module) ###################
tde_add_kpart( kcm_kontactknt AUTOMOC
SOURCES kcmkontactknt.cpp
LINK kdeui-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

@ -0,0 +1,49 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
tde_import( libkholidays )
tde_import( korganizer )
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/../../interfaces
${CMAKE_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES specialdatesplugin.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kontact )
install( FILES kcmsdsummary.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
##### libkontact_specialdatesplugin (module) ####
tde_add_kpart( libkontact_specialdatesplugin AUTOMOC
SOURCES specialdates_plugin.cpp sdsummarywidget.cpp
LINK kpinterfaces-shared kholidays-shared korganizer_calendar-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### kcm_sdsummary (module) ####################
tde_add_kpart( kcm_sdsummary AUTOMOC
SOURCES kcmsdsummary.cpp
LINK kdeui-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

@ -0,0 +1,50 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/../../interfaces
${CMAKE_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/certmanager/lib
${CMAKE_SOURCE_DIR}/libkdepim
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES kcmkontactsummary.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( FILES summaryplugin.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kontact )
install( FILES kontactsummary_part.rc DESTINATION ${DATA_INSTALL_DIR}/kontactsummary )
##### libkontact_summaryplugin (module) #########
tde_add_kpart( libkontact_summaryplugin AUTOMOC
SOURCES
summaryview_plugin.cpp summaryview_part.cpp dropwidget.cpp
LINK kpinterfaces-shared kdepim-shared kpimidentities-shared kutils-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### kcm_kontactsummary (module) ###############
tde_add_kpart( kcm_kontactsummary AUTOMOC
SOURCES kcmkontactsummary.cpp
LINK kdeui-shared kutils-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

@ -0,0 +1,38 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/../../interfaces
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES
weatherplugin.desktop
DESTINATION ${SERVICES_INSTALL_DIR}/kontact )
##### libkontact_weatherplugin (module) #########
tde_add_kpart( libkontact_weatherplugin AUTOMOC
SOURCES
weather_plugin.cpp summarywidget.cpp summarywidget.skel
LINK kpinterfaces-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

@ -0,0 +1,13 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
add_subdirectory( KontactDefaults )
add_subdirectory( OutlookDefaults )

@ -0,0 +1,14 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
install( FILES
profile.cfg kontactrc korganizerrc
DESTINATION ${DATA_INSTALL_DIR}/kontact/profiles/KontactDefaults )

@ -0,0 +1,14 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
install( FILES
profile.cfg kontactrc korganizerrc
DESTINATION ${DATA_INSTALL_DIR}/kontact/profiles/OutlookDefaults )

@ -0,0 +1,65 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
add_subdirectory( about )
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/../interfaces
${CMAKE_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/libkdepim
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
tde_install_icons( )
install( FILES Kontact.desktop kontactdcop.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
install( FILES kontact.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
install( FILES kontactconfig.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( FILES kontactui.rc kontact.setdlg DESTINATION ${DATA_INSTALL_DIR}/kontact )
##### kcm_kontact (module) ######################
tde_add_kpart( kcm_kontact AUTOMOC
SOURCES kcmkontact.cpp
LINK kontact-shared kdepim-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### kontact (executable) ######################
tde_add_executable( kontact AUTOMOC
SOURCES
main.cpp mainwindow.cpp sidepanebase.cpp iconsidepane.cpp
aboutdialog.cpp profilemanager.cpp profiledialog.cpp
kontactiface.skel
LINK kontact-shared kpinterfaces-shared kutils-shared khtml-shared
DESTINATION ${BIN_INSTALL_DIR}
)
##### kontact (shared) ##########################
tde_add_library( kontact SHARED
SOURCES prefs.kcfgc
VERSION 1.0.0
LINK kdecore-shared
DESTINATION ${LIB_INSTALL_DIR}
)

@ -0,0 +1,14 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
install( FILES
top-right-kontact.png main.html kontact.css
DESTINATION ${DATA_INSTALL_DIR}/kontact/about )

@ -9,6 +9,8 @@
# #
################################################# #################################################
project( korganizer )
include( ConfigureChecks.cmake ) include( ConfigureChecks.cmake )
configure_file( ical2vcal.in ical2vcal @ONLY ) configure_file( ical2vcal.in ical2vcal @ONLY )
@ -206,3 +208,8 @@ tde_add_library( korganizer SHARED AUTOMOC
kutils-shared knewstuff-shared kutils-shared knewstuff-shared
DESTINATION ${LIB_INSTALL_DIR} DESTINATION ${LIB_INSTALL_DIR}
) )
##### install import cmake modules ###############
tde_install_export( )

Loading…
Cancel
Save