2014-03-12 20:55:30 +04:00
|
|
|
# - Try to find QtKeychain
|
2012-11-13 14:20:55 +04:00
|
|
|
# Once done this will define
|
2014-03-12 20:55:30 +04:00
|
|
|
# QTKEYCHAIN_FOUND - System has QtKeychain
|
|
|
|
# QTKEYCHAIN_INCLUDE_DIRS - The QtKeychain include directories
|
|
|
|
# QTKEYCHAIN_LIBRARIES - The libraries needed to use QtKeychain
|
2012-11-13 14:20:55 +04:00
|
|
|
# QTKEYCHAIN_DEFINITIONS - Compiler switches required for using LibXml2
|
|
|
|
|
|
|
|
find_path(QTKEYCHAIN_INCLUDE_DIR qtkeychain/keychain.h)
|
|
|
|
|
2014-03-12 21:17:43 +04:00
|
|
|
find_library(QTKEYCHAIN_LIBRARY
|
|
|
|
NAMES
|
|
|
|
qtkeychain
|
|
|
|
libqtkeychain
|
|
|
|
PATHS
|
|
|
|
/usr/lib
|
|
|
|
/usr/lib/${CMAKE_ARCH_TRIPLET}
|
|
|
|
/usr/local/lib
|
|
|
|
/opt/local/lib
|
|
|
|
${CMAKE_LIBRARY_PATH}
|
|
|
|
${CMAKE_INSTALL_PREFIX}/lib
|
|
|
|
)
|
|
|
|
|
2012-11-13 14:20:55 +04:00
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
# handle the QUIETLY and REQUIRED arguments and set QTKEYCHAIN_FOUND to TRUE
|
|
|
|
# if all listed variables are TRUE
|
2014-03-12 20:55:30 +04:00
|
|
|
find_package_handle_standard_args(QtKeychain DEFAULT_MSG
|
2012-11-28 10:54:57 +04:00
|
|
|
QTKEYCHAIN_LIBRARY QTKEYCHAIN_INCLUDE_DIR)
|
2012-11-13 14:20:55 +04:00
|
|
|
|
2014-03-12 21:17:43 +04:00
|
|
|
mark_as_advanced(QTKEYCHAIN_INCLUDE_DIR QTKEYCHAIN_LIBRARY)
|