diff options
author | Marvin W <git@larma.de> | 2019-01-02 15:24:03 +0100 |
---|---|---|
committer | Marvin W <git@larma.de> | 2019-01-02 15:36:41 +0100 |
commit | cdd4c0b854fd4d27fa1d9bd941df03888301780a (patch) | |
tree | 9a6643d693d9868c20da9d54e1e68b175e7d5571 /cmake/FindQrencode.cmake | |
parent | 7012023d5997287b1ed300e03a4c5b91eb6c9c39 (diff) | |
download | dino-cdd4c0b854fd4d27fa1d9bd941df03888301780a.tar.gz dino-cdd4c0b854fd4d27fa1d9bd941df03888301780a.zip |
Find libqrencode using cmake/pkg-config logic
Diffstat (limited to 'cmake/FindQrencode.cmake')
-rw-r--r-- | cmake/FindQrencode.cmake | 11 |
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) |