Warning, /plasma/kwin/src/kcms/rules/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # KI18N Translation Domain for this library
0002 add_definitions(-DTRANSLATION_DOMAIN=\"kcm_kwinrules\")
0003 add_definitions(-DKCMRULES)
0004 
0005 set(kwinrules_SRCS
0006     ../../rulebooksettings.cpp
0007     ../../rules.cpp
0008     ../../utils/common.cpp
0009     ../../virtualdesktopsdbustypes.cpp
0010     kwinsrc.cpp
0011     optionsmodel.cpp
0012     ruleitem.cpp
0013     rulesmodel.cpp
0014     rulebookmodel.cpp
0015 )
0016 
0017 kconfig_add_kcfg_files(kwinrules_SRCS ../../rulesettings.kcfgc)
0018 kconfig_add_kcfg_files(kwinrules_SRCS ../../rulebooksettingsbase.kcfgc)
0019 
0020 add_library(KWinRulesObjects STATIC ${kwinrules_SRCS})
0021 set_property(TARGET KWinRulesObjects PROPERTY POSITION_INDEPENDENT_CODE ON)
0022 
0023 set(kwin_kcm_rules_XCB_LIBS
0024     XCB::CURSOR
0025     XCB::XCB
0026     XCB::XFIXES
0027 )
0028 
0029 set(kcm_libs
0030     Qt::Quick
0031 
0032     KF6::KCMUtils
0033     KF6::I18n
0034     KF6::KCMUtilsQuick
0035     KF6::WindowSystem
0036     KF6::XmlGui
0037 )
0038 
0039 if (KWIN_BUILD_ACTIVITIES)
0040     set(kcm_libs ${kcm_libs} Plasma::Activities)
0041 endif()
0042 target_link_libraries(KWinRulesObjects ${kcm_libs} ${kwin_kcm_rules_XCB_LIBS})
0043 
0044 kcmutils_add_qml_kcm(kcm_kwinrules SOURCES kcmrules.cpp)
0045 target_link_libraries(kcm_kwinrules PRIVATE KWinRulesObjects)