Warning, /pim/sink/cmake/modules/FindGpgme.cmake is written in an unsupported language. File is not indexed.
0001 find_path(GPGME_INCLUDE_DIR NAMES gpgme.h) 0002 find_path(GPGERROR_INCLUDE_DIR NAMES gpg-error.h) 0003 find_library(GPGME_LIBRARY NAMES gpgme) 0004 find_library(GPGERROR_LIBRARY NAMES gpg-error) 0005 0006 include(FindPackageHandleStandardArgs) 0007 find_package_handle_standard_args(Gpgme DEFAULT_MSG GPGME_INCLUDE_DIR GPGERROR_INCLUDE_DIR GPGME_LIBRARY GPGERROR_LIBRARY) 0008 0009 mark_as_advanced(GPGME_INCLUDE_DIR GPGME_LIBRARY GPGME_INCLUDE_DIR GPGME_LIBRARY) 0010 0011 set(GPGME_LIBRARIES ${GPGME_LIBRARY} ${GPGERROR_LIBRARY}) 0012 set(GPGME_INCLUDE_DIRS ${GPGME_INCLUDE_DIR} ${GPGERROR_INCLUDE_DIR}) 0013 0014 if (GPGME_FOUND AND NOT TARGET Gpgme::Gpgme) 0015 add_library(Gpgme::Gpgme INTERFACE IMPORTED) 0016 set_target_properties(Gpgme::Gpgme PROPERTIES 0017 INTERFACE_INCLUDE_DIRECTORIES "${GPGME_INCLUDE_DIRS}" 0018 INTERFACE_LINK_LIBRARIES "${GPGME_LIBRARIES}" 0019 ) 0020 endif()