aboutsummaryrefslogtreecommitdiff
path: root/cmake/FindQrencode.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/FindQrencode.cmake')
-rw-r--r--cmake/FindQrencode.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/cmake/FindQrencode.cmake b/cmake/FindQrencode.cmake
new file mode 100644
index 00000000..ccbf4f4e
--- /dev/null
+++ b/cmake/FindQrencode.cmake
@@ -0,0 +1,11 @@
+include(PkgConfigWithFallback)
+find_pkg_config_with_fallback(Qrencode
+ PKG_CONFIG_NAME libqrencode
+ LIB_NAMES qrencode
+ INCLUDE_NAMES qrencode.h
+)
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(Qrencode
+ REQUIRED_VARS Qrencode_LIBRARY
+ VERSION_VAR Qrencode_VERSION)