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

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorAdolfo E. GarcĂ­a <adolfo.garcia.cr@gmail.com>2018-10-19 21:42:49 +0300
committerJonathan White <droidmonkey@users.noreply.github.com>2018-10-19 21:42:49 +0300
commitbb16dc6d016b53d06a951724916bc41498ae63df (patch)
treeb58b03700ed3cd392b8595049f7936dfe2d228af /cmake
parent80749958b7c909644269540863dd78b7435e6a6d (diff)
Add QR code generator for TOTP export (#1167)
* Resolves #764 * Add libqrencode and qtsvg dependencies * Ensure QR code remains square * Auto-close QR code dialog when database is locked * Add databaseLocked() Signal to databaseWidget * Correct otpauth URI output in Totp::writeSettings(...)
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindQREncode.cmake22
1 files changed, 22 insertions, 0 deletions
diff --git a/cmake/FindQREncode.cmake b/cmake/FindQREncode.cmake
new file mode 100644
index 000000000..6328d9699
--- /dev/null
+++ b/cmake/FindQREncode.cmake
@@ -0,0 +1,22 @@
+# Copyright (C) 2017 KeePassXC Team <team@keepassxc.org>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 or (at your option)
+# version 3 of the License.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+find_path(QRENCODE_INCLUDE_DIR qrencode.h)
+find_library(QRENCODE_LIBRARY qrencode)
+
+mark_as_advanced(QRENCODE_LIBRARY QRENCODE_INCLUDE_DIR)
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(QREncode DEFAULT_MSG QRENCODE_LIBRARY QRENCODE_INCLUDE_DIR)