mirror of
https://github.com/chylex/Nextcloud-Desktop.git
synced 2024-11-25 01:42:47 +01:00
1cedb1919f
This commit integrates support for libcloudproviders desktop integration API. If build with the library it will check on startup if the DBus interface is available and then use it instead of the legacy status icon. Signed-off-by: Julius Härtl <jus@bitgrid.net>
23 lines
634 B
CMake
23 lines
634 B
CMake
# FindLibcloudproviders.cmake
|
|
|
|
find_path(LIBCLOUDPROVIDERS_INCLUDE_DIR
|
|
NAMES cloudprovidersproviderexporter.h cloudprovidersaccountexporter.h
|
|
PATH_SUFFIXES cloudproviders
|
|
)
|
|
find_library(LIBCLOUDPROVIDERS_LIBRARY
|
|
NAMES
|
|
libcloudproviders
|
|
cloudproviders
|
|
HINTS
|
|
/usr/lib
|
|
/usr/lib/${CMAKE_ARCH_TRIPLET}
|
|
/usr/local/lib
|
|
/opt/local/lib
|
|
${CMAKE_LIBRARY_PATH}
|
|
${CMAKE_INSTALL_PREFIX}/lib
|
|
)
|
|
|
|
message("================> ${LIBCLOUDPROVIDERS_LIBRARY}")
|
|
|
|
find_package_handle_standard_args(LIBCLOUDPROVIDERS DEFAULT_MSG LIBCLOUDPROVIDERS_INCLUDE_DIR LIBCLOUDPROVIDERS_LIBRARY)
|