[kdepim] initial cmake support for: karm, kmailcvt, kabc, kfile-plugins, konsolekalendar

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1225584 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
samelian 14 years ago
parent e6ac7b1d41
commit 8f289a4fcf

@ -97,6 +97,11 @@ option( BUILD_KNOTES "Build knotes" ${BUILD_ALL} )
option( BUILD_KODE "Build kode" ${BUILD_ALL} ) option( BUILD_KODE "Build kode" ${BUILD_ALL} )
option( BUILD_KRESOURCES "Build kresources" ${BUILD_ALL} ) option( BUILD_KRESOURCES "Build kresources" ${BUILD_ALL} )
option( BUILD_WIZARDS "Build wizards" ${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} )
##### configure checks ########################## ##### configure checks ##########################
@ -156,6 +161,11 @@ tde_conditional_add_subdirectory( BUILD_KNOTES knotes )
tde_conditional_add_subdirectory( BUILD_KODE kode ) tde_conditional_add_subdirectory( BUILD_KODE kode )
tde_conditional_add_subdirectory( BUILD_KRESOURCES kresources ) tde_conditional_add_subdirectory( BUILD_KRESOURCES kresources )
tde_conditional_add_subdirectory( BUILD_WIZARDS wizards ) 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 )
##### write configure files ##################### ##### write configure files #####################

@ -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( kabc2mutt )
tde_conditional_add_subdirectory( WITH_NEWDISTRLISTS kabcdistlistupdater )

@ -0,0 +1,29 @@
#################################################
#
# (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}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### kabc2mutt (executable) ####################
tde_add_executable( kabc2mutt AUTOMOC
SOURCES kabc2mutt.cpp main.cpp
LINK kabc-shared
DESTINATION ${BIN_INSTALL_DIR}
)

@ -0,0 +1,42 @@
#################################################
#
# (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( libkmime )
tde_import( ktnef )
tde_import( libkcal )
tde_import( libkdepim )
include_directories(
${CMAKE_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install(
FILES kabcdistlistupdater.desktop
DESTINATION ${AUTOSTART_INSTALL_DIR}
)
##### kabcdistlistupdater (executable) ####################
tde_add_executable( kabcdistlistupdater
SOURCES kabcdistlistupdater.cpp
LINK kdepim-shared
DESTINATION ${BIN_INSTALL_DIR}
)

@ -0,0 +1,82 @@
#################################################
#
# (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( libkmime )
tde_import( ktnef )
tde_import( libkcal )
tde_import( libkdepim )
tde_import( kresources )
add_subdirectory( support )
add_subdirectory( pics )
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/libkcal
${CMAKE_SOURCE_DIR}/libkdepim
${CMAKE_SOURCE_DIR}/kresources/remote
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
tde_install_icons( karm )
install( FILES karm_part.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( FILES uninstall.desktop RENAME karm.desktop DESTINATION ${APPS_INSTALL_DIR}/Utilities )
install( FILES karmui.rc DESTINATION ${DATA_INSTALL_DIR}/karm )
install( FILES karmui.rc DESTINATION ${DATA_INSTALL_DIR}/karmpart )
##### karm (static) #############################
set( libkarm_SRCS
kaccelmenuwatch.cpp desktoptracker.cpp edittaskdialog.cpp
idletimedetector.cpp printdialog.cpp timekard.cpp karmutility.cpp
ktimewidget.cpp karmstorage.cpp mainwindow.cpp preferences.cpp
print.cpp task.cpp taskview.cpp tray.cpp csvexportdialog_base.ui
csvexportdialog.cpp plannerparser.cpp karmdcopiface.skel
taskviewwhatsthis.cpp
)
tde_add_library( karm_pic STATIC_PIC AUTOMOC
SOURCES ${libkarm_SRCS}
)
tde_add_library( karm_nopic STATIC AUTOMOC
SOURCES ${libkarm_SRCS}
)
##### libkarmpart (module) ######################
tde_add_kpart( libkarmpart AUTOMOC
SOURCES karm_part.cpp
LINK karm_pic-static kcal_resourceremote-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### karm (executable) #########################
tde_add_executable( karm
SOURCES main.cpp
LINK karm_nopic-static kcal_resourceremote-shared kdeprint-shared
DESTINATION ${BIN_INSTALL_DIR}
)

@ -322,7 +322,7 @@ bool karmPart::openFile()
_taskView->load(m_file); _taskView->load(m_file);
// just for fun, set the status bar // just for fun, set the status bar
emit seStatusBarText( m_url.prettyURL() ); emit setStatusBarText( m_url.prettyURL() );
return true; return true;
} }

@ -41,7 +41,6 @@ class Preferences;
class Task; class Task;
class TaskView; class TaskView;
class HistoryEvent; class HistoryEvent;
class KCal::Todo;
/** /**
* Singleton to store/retrieve KArm data to/from persistent storage. * Singleton to store/retrieve KArm data to/from persistent storage.

@ -0,0 +1,19 @@
#################################################
#
# (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
filedel.xpm clock.xpm clockedit.xpm empty-watch.xpm watch-0.xpm
watch-1.xpm watch-2.xpm watch-3.xpm watch-4.xpm watch-5.xpm
watch-6.xpm watch-7.xpm active-icon-0.xpm active-icon-1.xpm
active-icon-2.xpm active-icon-3.xpm active-icon-4.xpm
active-icon-5.xpm active-icon-6.xpm active-icon-7.xpm
task-complete.xpm task-incomplete.xpm
DESTINATION ${DATA_INSTALL_DIR}/karm/pics )

@ -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
#
#################################################
install( FILES karm.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )

@ -21,8 +21,6 @@ class TQString;
class KarmStorage; class KarmStorage;
class TQTimer; class TQTimer;
class KCal::Incidence;
class KCal::Todo;
class TQObject; class TQObject;
class TQPixmap; class TQPixmap;

@ -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( vcf )
add_subdirectory( ics )

@ -0,0 +1,39 @@
#################################################
#
# (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( libkmime )
tde_import( ktnef )
tde_import( libkcal )
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES kfile_ics.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
##### kfile_ics (module) ########################
tde_add_kpart( kfile_ics AUTOMOC
SOURCES kfile_ics.cpp
LINK kcal-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

@ -0,0 +1,35 @@
#################################################
#
# (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_BINARY_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES kfile_vcf.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
##### kfile_vcf (module) ########################
tde_add_kpart( kfile_vcf AUTOMOC
SOURCES kfile_vcf.cpp
LINK kabc-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
#
#################################################
add_subdirectory( pics )
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
tde_install_icons( )
install(
FILES uninstall.desktop
RENAME kmailcvt.desktop
DESTINATION ${APPS_INSTALL_DIR}/Utilities )
##### kmailcvt (executable) #####################
tde_add_executable( kmailcvt AUTOMOC
SOURCES
kimportpagedlg.ui kimportpage.cpp kselfilterpagedlg.ui
kselfilterpage.cpp filters.cxx filter_oe.cxx kmailcvt.cpp main.cpp
filter_pmail.cxx filter_plain.cxx filter_outlook.cxx filter_mbox.cxx
filter_evolution.cxx filter_mailapp.cxx filter_evolution_v2.cxx
filter_opera.cxx filter_thunderbird.cxx filter_kmail_maildir.cxx
filter_sylpheed.cxx filter_thebat.cxx filter_lnotes.cxx
filter_kmail_archive.cxx
LINK kio-shared
DESTINATION ${BIN_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
#
#################################################
install( FILES step1.png DESTINATION ${DATA_INSTALL_DIR}/kmailcvt/pics )

@ -0,0 +1,68 @@
#################################################
#
# (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( libkmime )
tde_import( ktnef )
tde_import( libkcal )
tde_import( libkdepim )
add_subdirectory( pixmaps )
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES konsolekalendar.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
##### 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( )
##### konsolekalendar (executable) ##############
process_kcfg( konsolekalendar.cpp htmlexportsettings.h libkcal
htmlexportsettings.kcfg htmlexportsettings.kcfgc )
tde_add_executable( konsolekalendar AUTOMOC
SOURCES
konsolekalendarepoch.cpp konsolekalendardelete.cpp
konsolekalendarchange.cpp konsolekalendarvariables.cpp
konsolekalendaradd.cpp konsolekalendarexports.cpp konsolekalendar.cpp
stdcalendar.cpp main.cpp
LINK kdepim-shared
DESTINATION ${BIN_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
#
#################################################
tde_install_icons( )
Loading…
Cancel
Save