summaryrefslogtreecommitdiffstats
path: root/certmanager/lib/backends
diff options
context:
space:
mode:
Diffstat (limited to 'certmanager/lib/backends')
-rw-r--r--certmanager/lib/backends/CMakeLists.txt13
-rw-r--r--certmanager/lib/backends/chiasmus/CMakeLists.txt33
-rw-r--r--certmanager/lib/backends/chiasmus/ConfigureChecks.cmake15
-rw-r--r--certmanager/lib/backends/qgpgme/CMakeLists.txt38
4 files changed, 99 insertions, 0 deletions
diff --git a/certmanager/lib/backends/CMakeLists.txt b/certmanager/lib/backends/CMakeLists.txt
new file mode 100644
index 000000000..8695ad83f
--- /dev/null
+++ b/certmanager/lib/backends/CMakeLists.txt
@@ -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( qgpgme )
+add_subdirectory( chiasmus )
diff --git a/certmanager/lib/backends/chiasmus/CMakeLists.txt b/certmanager/lib/backends/chiasmus/CMakeLists.txt
new file mode 100644
index 000000000..62e71adbf
--- /dev/null
+++ b/certmanager/lib/backends/chiasmus/CMakeLists.txt
@@ -0,0 +1,33 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include( ConfigureChecks.cmake )
+
+add_definitions( "-DGPG_ERR_SOURCE_DEFAULT=((gpg_err_source_t)176)" )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/certmanager/lib
+ ${CMAKE_SOURCE_DIR}/libkdepim
+ ${CMAKE_SOURCE_DIR}/libkdenetwork
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+
+##### kleopatra_backend_chiasmus (static) #######
+
+tde_add_library( kleopatra_backend_chiasmus STATIC_PIC AUTOMOC
+ SOURCES
+ config_data.c obtainkeysjob.cpp symcryptrunprocessbase.cpp
+ chiasmusjob.cpp chiasmuslibrary.cpp chiasmusbackend.cpp
+)
diff --git a/certmanager/lib/backends/chiasmus/ConfigureChecks.cmake b/certmanager/lib/backends/chiasmus/ConfigureChecks.cmake
new file mode 100644
index 000000000..570afff3d
--- /dev/null
+++ b/certmanager/lib/backends/chiasmus/ConfigureChecks.cmake
@@ -0,0 +1,15 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+check_c_source_compiles("
+ union { int one; const char * two } foo = { .two = \"Hello\" };
+ int main() { return 0; }"
+ HAVE_C99_INITIALIZERS )
diff --git a/certmanager/lib/backends/qgpgme/CMakeLists.txt b/certmanager/lib/backends/qgpgme/CMakeLists.txt
new file mode 100644
index 000000000..ae2789155
--- /dev/null
+++ b/certmanager/lib/backends/qgpgme/CMakeLists.txt
@@ -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_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/certmanager/lib
+ ${CMAKE_SOURCE_DIR}/libkdenetwork
+ ${CMAKE_SOURCE_DIR}/libkdepim
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${GPGME_INCLUDE_DIRS}
+)
+
+
+##### kleopatra_backend_qgpgme (static) #########
+
+tde_add_library( kleopatra_backend_qgpgme STATIC_PIC AUTOMOC
+ SOURCES
+ gnupgprocessbase.cpp qgpgmeprogresstokenmapper.cpp
+ qgpgmebackend.cpp qgpgmejob.cpp qgpgmekeylistjob.cpp
+ qgpgmekeygenerationjob.cpp qgpgmeimportjob.cpp
+ qgpgmeexportjob.cpp qgpgmesecretkeyexportjob.cpp
+ qgpgmedownloadjob.cpp qgpgmedeletejob.cpp
+ qgpgmeencryptjob.cpp qgpgmedecryptjob.cpp
+ qgpgmesignjob.cpp qgpgmeverifydetachedjob.cpp
+ qgpgmeverifyopaquejob.cpp qgpgmesignencryptjob.cpp
+ qgpgmedecryptverifyjob.cpp qgpgmecryptoconfig.cpp
+ qgpgmerefreshkeysjob.cpp
+)