nextcloud-desktop/shell_integration/CMakeLists.txt
Kevin Ottens 38b59a82bf [dolphin] Adjust CMake to handle the presence of KF6
Now if KF6 KIO is present, we build the Dolphin plugin against the Qt6
version of everything. Otherwise we keep assuming the Qt5 version of the
platform.

Signed-off-by: Kevin Ottens <ervin@kde.org>
2024-03-06 14:52:36 +01:00

30 lines
653 B
CMake

if (APPLE)
add_subdirectory(MacOSX)
endif()
if(BUILD_SHELL_INTEGRATION_ICONS)
add_subdirectory(icons)
endif()
if( UNIX AND NOT APPLE )
if(BUILD_SHELL_INTEGRATION_NAUTILUS)
add_subdirectory(nautilus)
endif()
if(BUILD_SHELL_INTEGRATION_DOLPHIN)
find_package(KF5KIO "5.16" CONFIG QUIET)
find_package(KF6KIO "5.240" CONFIG QUIET)
if(KF5KIO_FOUND OR KF6KIO_FOUND)
add_subdirectory(dolphin)
else()
message("Dolphin plugin disabled: KDE Frameworks 5 and 6 not found")
endif()
endif()
endif()
if(CLOUDPROVIDERS_FOUND)
add_subdirectory(libcloudproviders)
endif()
if(MSVC)
add_subdirectory(windows)
endif()