mirror of
https://github.com/chylex/Nextcloud-Desktop.git
synced 2024-10-26 06:42:48 +02:00
![Julius Härtl](/assets/img/avatar_default.png)
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)
|