summaryrefslogtreecommitdiffstats
path: root/libksieve
diff options
context:
space:
mode:
Diffstat (limited to 'libksieve')
-rw-r--r--libksieve/CMakeLists.txt39
-rw-r--r--libksieve/ksieve/CMakeLists.txt14
-rw-r--r--libksieve/parser/CMakeLists.txt25
-rw-r--r--libksieve/shared/CMakeLists.txt25
4 files changed, 103 insertions, 0 deletions
diff --git a/libksieve/CMakeLists.txt b/libksieve/CMakeLists.txt
new file mode 100644
index 000000000..d28674d9d
--- /dev/null
+++ b/libksieve/CMakeLists.txt
@@ -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
+#
+#################################################
+
+project( libksieve )
+
+add_subdirectory( ksieve )
+add_subdirectory( shared )
+add_subdirectory( parser )
+
+include_directories(
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### ksieve (shared) ###########################
+
+configure_file( ${CMAKE_SOURCE_DIR}/cmake/modules/template_dummy_cpp.cmake dummy.cpp COPYONLY )
+
+tde_add_library( ksieve SHARED
+ SOURCES dummy.cpp
+ VERSION 0.0.0
+ EMBED ksieve_parser-static ksieve_shared-static
+ LINK kdecore-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+tde_install_export( )
diff --git a/libksieve/ksieve/CMakeLists.txt b/libksieve/ksieve/CMakeLists.txt
new file mode 100644
index 000000000..9765ddfa0
--- /dev/null
+++ b/libksieve/ksieve/CMakeLists.txt
@@ -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
+ error.h lexer.h parser.h scriptbuilder.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/ksieve )
diff --git a/libksieve/parser/CMakeLists.txt b/libksieve/parser/CMakeLists.txt
new file mode 100644
index 000000000..526bb1685
--- /dev/null
+++ b/libksieve/parser/CMakeLists.txt
@@ -0,0 +1,25 @@
+#################################################
+#
+# (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_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/libksieve
+ ${CMAKE_SOURCE_DIR}/libkdepim
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+
+##### ksieve_parser (static) ####################
+
+tde_add_library( ksieve_parser STATIC_PIC
+ SOURCES utf8validator.cpp lexer.cpp parser.cpp
+)
diff --git a/libksieve/shared/CMakeLists.txt b/libksieve/shared/CMakeLists.txt
new file mode 100644
index 000000000..5f3e92f42
--- /dev/null
+++ b/libksieve/shared/CMakeLists.txt
@@ -0,0 +1,25 @@
+#################################################
+#
+# (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_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/libksieve
+ ${CMAKE_SOURCE_DIR}/libkdepim
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+
+##### ksieve_shared (static) ####################
+
+tde_add_library( ksieve_shared STATIC_PIC
+ SOURCES error.cpp
+)