Do not look up kcm dependencies if KWIN_BUILD_KCMS=OFF
We are not going to use them anyway...
This commit is contained in:
parent
3bfaac45aa
commit
52a96996f3
1 changed files with 15 additions and 12 deletions
|
@ -39,6 +39,12 @@ include(ECMConfiguredInstall)
|
||||||
include(ECMQtDeclareLoggingCategory)
|
include(ECMQtDeclareLoggingCategory)
|
||||||
include(ECMSetupQtPluginMacroNames)
|
include(ECMSetupQtPluginMacroNames)
|
||||||
|
|
||||||
|
option(KWIN_BUILD_DECORATIONS "Enable building of KWin decorations." ON)
|
||||||
|
option(KWIN_BUILD_KCMS "Enable building of KWin configuration modules." ON)
|
||||||
|
option(KWIN_BUILD_NOTIFICATIONS "Enable building of KWin with knotifications support" ON)
|
||||||
|
option(KWIN_BUILD_SCREENLOCKER "Enable building of KWin lockscreen functionality" ON)
|
||||||
|
option(KWIN_BUILD_TABBOX "Enable building of KWin Tabbox functionality" ON)
|
||||||
|
|
||||||
find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
|
find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
|
||||||
Concurrent
|
Concurrent
|
||||||
Core
|
Core
|
||||||
|
@ -80,13 +86,15 @@ find_package(KF6 ${KF6_MIN_VERSION} REQUIRED COMPONENTS
|
||||||
WindowSystem
|
WindowSystem
|
||||||
)
|
)
|
||||||
# required frameworks by config modules
|
# required frameworks by config modules
|
||||||
find_package(KF6 ${KF6_MIN_VERSION} REQUIRED COMPONENTS
|
if(KWIN_BUILD_KCMS)
|
||||||
|
find_package(KF6 ${KF6_MIN_VERSION} REQUIRED COMPONENTS
|
||||||
Declarative
|
Declarative
|
||||||
KCMUtils
|
KCMUtils
|
||||||
NewStuff
|
NewStuff
|
||||||
Service
|
Service
|
||||||
XmlGui
|
XmlGui
|
||||||
)
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
find_package(Threads)
|
find_package(Threads)
|
||||||
set_package_properties(Threads PROPERTIES
|
set_package_properties(Threads PROPERTIES
|
||||||
|
@ -354,11 +362,6 @@ ecm_find_qmlmodule(org.kde.plasma.core 2.0)
|
||||||
ecm_find_qmlmodule(org.kde.plasma.components 2.0)
|
ecm_find_qmlmodule(org.kde.plasma.components 2.0)
|
||||||
|
|
||||||
########### configure tests ###############
|
########### configure tests ###############
|
||||||
option(KWIN_BUILD_DECORATIONS "Enable building of KWin decorations." ON)
|
|
||||||
option(KWIN_BUILD_KCMS "Enable building of KWin configuration modules." ON)
|
|
||||||
option(KWIN_BUILD_NOTIFICATIONS "Enable building of KWin with knotifications support" ON)
|
|
||||||
option(KWIN_BUILD_SCREENLOCKER "Enable building of KWin lockscreen functionality" ON)
|
|
||||||
option(KWIN_BUILD_TABBOX "Enable building of KWin Tabbox functionality" ON)
|
|
||||||
cmake_dependent_option(KWIN_BUILD_ACTIVITIES "Enable building of KWin with kactivities support" ON "KF6Activities_FOUND" OFF)
|
cmake_dependent_option(KWIN_BUILD_ACTIVITIES "Enable building of KWin with kactivities support" ON "KF6Activities_FOUND" OFF)
|
||||||
cmake_dependent_option(KWIN_BUILD_RUNNERS "Enable building of KWin with krunner support" ON "KF6Runner_FOUND" OFF)
|
cmake_dependent_option(KWIN_BUILD_RUNNERS "Enable building of KWin with krunner support" ON "KF6Runner_FOUND" OFF)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue