summaryrefslogtreecommitdiffstats
path: root/konsolekalendar
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-03-21 20:41:08 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-03-21 20:41:08 +0000
commit8f289a4fcf86668a49e346ca5fa246c5f5ec6806 (patch)
tree015d4f4ffba9d1cc1f0acbb0909eda6586b08aca /konsolekalendar
parente6ac7b1d410162c25d940e7832b0e95c5f835013 (diff)
downloadtdepim-8f289a4fcf86668a49e346ca5fa246c5f5ec6806.tar.gz
tdepim-8f289a4fcf86668a49e346ca5fa246c5f5ec6806.zip
[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
Diffstat (limited to 'konsolekalendar')
-rw-r--r--konsolekalendar/CMakeLists.txt68
-rw-r--r--konsolekalendar/pixmaps/CMakeLists.txt12
2 files changed, 80 insertions, 0 deletions
diff --git a/konsolekalendar/CMakeLists.txt b/konsolekalendar/CMakeLists.txt
new file mode 100644
index 000000000..63c17f28c
--- /dev/null
+++ b/konsolekalendar/CMakeLists.txt
@@ -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}
+)
diff --git a/konsolekalendar/pixmaps/CMakeLists.txt b/konsolekalendar/pixmaps/CMakeLists.txt
new file mode 100644
index 000000000..db8d4480c
--- /dev/null
+++ b/konsolekalendar/pixmaps/CMakeLists.txt
@@ -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( )