Warning, /pim/merkuro/cmake/modules/FindGpgme.cmake is written in an unsupported language. File is not indexed.
0001 # SPDX-FileCopyrightText: 2013 Sandro Knauß <mail@sandroknauss.de> 0002 # SPDX-License-Identifier: BSD-3-Clause 0003 0004 find_path(GPGME_INCLUDE_DIR NAMES gpgme.h) 0005 find_path(GPGERROR_INCLUDE_DIR NAMES gpg-error.h) 0006 find_library(GPGME_LIBRARY NAMES gpgme) 0007 find_library(GPGERROR_LIBRARY NAMES gpg-error) 0008 0009 include(FindPackageHandleStandardArgs) 0010 find_package_handle_standard_args(Gpgme DEFAULT_MSG GPGME_INCLUDE_DIR GPGERROR_INCLUDE_DIR GPGME_LIBRARY GPGERROR_LIBRARY) 0011 0012 mark_as_advanced(GPGME_INCLUDE_DIR GPGME_LIBRARY GPGME_INCLUDE_DIR GPGME_LIBRARY) 0013 0014 set(GPGME_LIBRARIES ${GPGME_LIBRARY} ${GPGERROR_LIBRARY}) 0015 set(GPGME_INCLUDE_DIRS ${GPGME_INCLUDE_DIR} ${GPGERROR_INCLUDE_DIR}) 0016 0017 if (GPGME_FOUND AND NOT TARGET Gpgme::Gpgme) 0018 add_library(Gpgme::Gpgme INTERFACE IMPORTED) 0019 set_target_properties(Gpgme::Gpgme PROPERTIES 0020 INTERFACE_INCLUDE_DIRECTORIES "${GPGME_INCLUDE_DIRS}" 0021 INTERFACE_LINK_LIBRARIES "${GPGME_LIBRARIES}" 0022 ) 0023 endif()