Warning, /frameworks/prison/cmake/FindQRencode.cmake is written in an unsupported language. File is not indexed.
0001 #.rst: 0002 # FindQRencode 0003 # ------------ 0004 # 0005 # Try to find the qrencode library. 0006 # 0007 # This will define the following variables: 0008 # 0009 # ``QRencode_FOUND`` 0010 # True if the QRencode library is available. 0011 # 0012 # ``QRencode_INCLUDE_DIRS`` 0013 # the QRencode library include dirs. 0014 # This variable shall be passed to target_include_libraries() calls if 0015 # the target is not used for linking. 0016 # 0017 # ``QRencode_LIBRARIES`` 0018 # the libraries used to link QRencode. 0019 # This can be passed to target_link_libraries instead of 0020 # the ``QRencode::QRencode`` target. 0021 # 0022 # If ``QRencode_FOUND`` is TRUE, the following imported target 0023 # will be available: 0024 # 0025 # ``QRencode::QRencode`` 0026 # The QRencode library. 0027 # 0028 # Imported target since 5.27.0 0029 # 0030 #============================================================================= 0031 # SPDX-FileCopyrightText: 2010 Sune Vuorela <sune@debian.org> 0032 # SPDX-License-Identifier: BSD-3-Clause 0033 #============================================================================= 0034 0035 find_library(QRencode_LIBRARIES NAMES qrencode qrencoded) 0036 0037 find_path(QRencode_INCLUDE_DIRS qrencode.h) 0038 0039 include(FindPackageHandleStandardArgs) 0040 0041 find_package_handle_standard_args(QRencode 0042 FOUND_VAR QRencode_FOUND 0043 REQUIRED_VARS QRencode_LIBRARIES QRencode_INCLUDE_DIRS 0044 ) 0045 0046 if(QRencode_FOUND AND NOT TARGET QRencode::QRencode) 0047 add_library(QRencode::QRencode UNKNOWN IMPORTED) 0048 set_target_properties(QRencode::QRencode PROPERTIES 0049 IMPORTED_LOCATION "${QRencode_LIBRARIES}" 0050 INTERFACE_INCLUDE_DIRECTORIES "${QRencode_INCLUDE_DIRS}") 0051 endif() 0052 0053 mark_as_advanced(QRencode_LIBRARIES QRencode_INCLUDE_DIRS) 0054 0055 include(FeatureSummary) 0056 set_package_properties(QRencode PROPERTIES 0057 URL "https://fukuchi.org/works/qrencode/" 0058 DESCRIPTION "The QRencode library" 0059 )