mirror of
https://github.com/nextcloud/desktop.git
synced 2024-12-03 05:12:37 +03:00
637fb449c6
Added missing copyright headers.
33 lines
1.2 KiB
CMake
33 lines
1.2 KiB
CMake
# (c) 2014 Copyright ownCloud, Inc.
|
|
# Redistribution and use is allowed according to the terms of the BSD license.
|
|
# For details see the accompanying COPYING* file.
|
|
|
|
# - Try to find QtKeychain
|
|
# Once done this will define
|
|
# QTKEYCHAIN_FOUND - System has QtKeychain
|
|
# QTKEYCHAIN_INCLUDE_DIRS - The QtKeychain include directories
|
|
# QTKEYCHAIN_LIBRARIES - The libraries needed to use QtKeychain
|
|
# QTKEYCHAIN_DEFINITIONS - Compiler switches required for using LibXml2
|
|
|
|
find_path(QTKEYCHAIN_INCLUDE_DIR qt5keychain/keychain.h)
|
|
|
|
find_library(QTKEYCHAIN_LIBRARY
|
|
NAMES
|
|
qt5keychain
|
|
lib5qtkeychain
|
|
PATHS
|
|
/usr/lib
|
|
/usr/lib/${CMAKE_ARCH_TRIPLET}
|
|
/usr/local/lib
|
|
/opt/local/lib
|
|
${CMAKE_LIBRARY_PATH}
|
|
${CMAKE_INSTALL_PREFIX}/lib
|
|
)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
# handle the QUIETLY and REQUIRED arguments and set QTKEYCHAIN_FOUND to TRUE
|
|
# if all listed variables are TRUE
|
|
find_package_handle_standard_args(Qt5Keychain DEFAULT_MSG
|
|
QTKEYCHAIN_LIBRARY QTKEYCHAIN_INCLUDE_DIR)
|
|
|
|
mark_as_advanced(QTKEYCHAIN_INCLUDE_DIR QTKEYCHAIN_LIBRARY)
|