FindQtKeychain.cmake 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # (c) 2014 Copyright ownCloud GmbH
  2. # Redistribution and use is allowed according to the terms of the BSD license.
  3. # For details see the accompanying COPYING* file.
  4. # - Try to find QtKeychain
  5. # Once done this will define
  6. # QTKEYCHAIN_FOUND - System has QtKeychain
  7. # QTKEYCHAIN_INCLUDE_DIRS - The QtKeychain include directories
  8. # QTKEYCHAIN_LIBRARIES - The libraries needed to use QtKeychain
  9. # QTKEYCHAIN_DEFINITIONS - Compiler switches required for using LibXml2
  10. find_path(QTKEYCHAIN_INCLUDE_DIR
  11. NAMES
  12. keychain.h
  13. PATH_SUFFIXES
  14. qtkeychain
  15. )
  16. find_library(QTKEYCHAIN_LIBRARY
  17. NAMES
  18. qtkeychain
  19. libqtkeychain
  20. PATHS
  21. /usr/lib
  22. /usr/lib/${CMAKE_ARCH_TRIPLET}
  23. /usr/local/lib
  24. /opt/local/lib
  25. ${CMAKE_LIBRARY_PATH}
  26. ${CMAKE_INSTALL_PREFIX}/lib
  27. )
  28. include(FindPackageHandleStandardArgs)
  29. # handle the QUIETLY and REQUIRED arguments and set QTKEYCHAIN_FOUND to TRUE
  30. # if all listed variables are TRUE
  31. find_package_handle_standard_args(QtKeychain DEFAULT_MSG
  32. QTKEYCHAIN_LIBRARY QTKEYCHAIN_INCLUDE_DIR)
  33. mark_as_advanced(QTKEYCHAIN_INCLUDE_DIR QTKEYCHAIN_LIBRARY)