You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.5 KiB
CMake
36 lines
1.5 KiB
CMake
option(CUTEFISH_BUILD_KWIN6_DECORATION "Build the KDecoration3 plugin used by KWin6" ON)
|
|
option(CUTEFISH_BUILD_KWIN6_EFFECT "Build the rounded corners effect for KWin6" ON)
|
|
|
|
if(CUTEFISH_BUILD_KWIN6_DECORATION)
|
|
find_package(KDecoration3 QUIET)
|
|
if(KDecoration3_FOUND)
|
|
add_subdirectory(decoration)
|
|
message(STATUS "KDecoration3 found: building Cutefish KWin6 decoration")
|
|
else()
|
|
message(WARNING "KDecoration3 was not found; the KWin6 decoration will not be built. Install libkdecorations3-dev or disable CUTEFISH_BUILD_KWIN6_DECORATION.")
|
|
endif()
|
|
endif()
|
|
|
|
if(CUTEFISH_BUILD_KWIN6_EFFECT)
|
|
# KWinConfig.cmake looks its dependencies up with find modules shipped by ECM,
|
|
# and the imported KWin::kwin target expects them all to be known here.
|
|
find_package(ECM QUIET NO_MODULE)
|
|
if(ECM_FOUND)
|
|
list(APPEND CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
|
|
endif()
|
|
|
|
find_package(Qt6 CONFIG QUIET COMPONENTS Core Gui DBus Quick Widgets)
|
|
find_package(KF6Config QUIET)
|
|
find_package(KF6CoreAddons QUIET)
|
|
find_package(KF6WindowSystem QUIET)
|
|
find_package(Wayland QUIET COMPONENTS Server)
|
|
find_package(epoxy QUIET)
|
|
find_package(KWin QUIET)
|
|
if(KWin_FOUND)
|
|
add_subdirectory(roundedwindow)
|
|
message(STATUS "KWin development files found: building the Cutefish rounded corners effect")
|
|
else()
|
|
message(WARNING "KWin development files were not found; the rounded corners effect will not be built. Install kwin-dev or disable CUTEFISH_BUILD_KWIN6_EFFECT.")
|
|
endif()
|
|
endif()
|