FindQtKeychain.cmake 740 B

123456789101112131415161718
  1. # - Try to find QtKeyChain
  2. # Once done this will define
  3. # QTKEYCHAIN_FOUND - System has QtKeyChain
  4. # QTKEYCHAIN_INCLUDE_DIRS - The QtKeyChain include directories
  5. # QTKEYCHAIN_LIBRARIES - The libraries needed to use QtKeyChain
  6. # QTKEYCHAIN_DEFINITIONS - Compiler switches required for using LibXml2
  7. find_path(QTKEYCHAIN_INCLUDE_DIR qtkeychain/keychain.h)
  8. find_library(QTKEYCHAIN_LIBRARY NAMES libqtkeychain qtkeychain)
  9. include(FindPackageHandleStandardArgs)
  10. # handle the QUIETLY and REQUIRED arguments and set QTKEYCHAIN_FOUND to TRUE
  11. # if all listed variables are TRUE
  12. find_package_handle_standard_args(QtKeyChain DEFAULT_MSG
  13. QTKEYCHAIN_LIBRARY QTKEYCHAIN_INCLUDE_DIR)
  14. mark_as_advanced(QTKEYCHAIN_INCLUDE_DIR QTKEYCHAIN_LIBRARY )