Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorDominik Schmidt <dev@dominik-schmidt.de>2012-11-13 14:20:55 +0400
committerKlaas Freitag <freitag@owncloud.com>2012-11-27 22:28:03 +0400
commit2b2eb853fcbb3d36f369f507821c4ebea5ddecee (patch)
tree5dd8c133547f69a1cf16efaaae4d1c390e1f42f7 /cmake
parentbf2181f11161b714311017643c3338aa19c21b80 (diff)
Add qtkeychain to cmake - WIP read password from keychain.
Conflicts: CMakeLists.txt
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/FindQtKeychain.cmake21
1 files changed, 21 insertions, 0 deletions
diff --git a/cmake/modules/FindQtKeychain.cmake b/cmake/modules/FindQtKeychain.cmake
new file mode 100644
index 000000000..573c39096
--- /dev/null
+++ b/cmake/modules/FindQtKeychain.cmake
@@ -0,0 +1,21 @@
+# - Try to find QtKeyChain
+# Once done this will define
+# QTKEYCHAIN_FOUND - System has QtKeyChain
+# QTKEYCHAIN_INCLUDE_DIRS - The QtKeyChain include directories
+# QTKEYCHAIN_LIBRARIES - The libraries needed to use QtKeyChain
+# QTKEYCHAIN_DEFINITIONS - Compiler switches required for using LibXml2
+
+find_path(QTKEYCHAIN_INCLUDE_DIR qtkeychain/keychain.h)
+
+find_library(QTKEYCHAIN_LIBRARY NAMES libqtkeychain qtkeychain)
+
+set(QTKEYCHAIN_LIBRARIES ${QTKEYCHAIN_LIBRARY} )
+set(QTKEYCHAIN_INCLUDE_DIRS ${QTKEYCHAIN_INCLUDE_DIR} )
+
+include(FindPackageHandleStandardArgs)
+# handle the QUIETLY and REQUIRED arguments and set QTKEYCHAIN_FOUND to TRUE
+# if all listed variables are TRUE
+find_package_handle_standard_args(QtKeyChain DEFAULT_MSG
+ QTKEYCHAIN_LIBRARY QTKEYCHAIN_INCLUDE_DIR)
+
+mark_as_advanced(QTKEYCHAIN_INCLUDE_DIR QTKEYCHAIN_LIBRARY ) \ No newline at end of file