Warning, /plasma/breeze/kdecoration/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 add_definitions(-DTRANSLATION_DOMAIN="breeze_kwin_deco")
0002 
0003 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS CoreAddons GuiAddons ConfigWidgets I18n IconThemes)
0004 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS DBus)
0005 
0006 ################# includes #################
0007 include_directories(${CMAKE_SOURCE_DIR}/libbreezecommon)
0008 include_directories(${CMAKE_BINARY_DIR}/libbreezecommon)
0009 
0010 ################# newt target #################
0011 ### plugin classes
0012 set(breezedecoration_SRCS
0013     breezebutton.cpp
0014     breezedecoration.cpp
0015     breezesettingsprovider.cpp
0016 )
0017 
0018 ### config classes
0019 set(breezedecoration_config_SRCS
0020     breezeexceptionlist.cpp
0021     config/breezeconfigwidget.cpp
0022     config/breezedetectwidget.cpp
0023     config/breezeexceptiondialog.cpp
0024     config/breezeexceptionlistwidget.cpp
0025     config/breezeexceptionmodel.cpp
0026     config/breezeitemmodel.cpp
0027 )
0028 ki18n_wrap_ui(breezedecoration_config_SRCS
0029    config/ui/breezeconfigurationui.ui
0030    config/ui/breezeexceptiondialog.ui
0031    config/ui/breezeexceptionlistwidget.ui
0032 )
0033 add_library(breezedecoration_STATIC STATIC ${breezedecoration_config_SRCS})
0034 # Needed to link this static lib to shared libs
0035 set_property(TARGET breezedecoration_STATIC PROPERTY POSITION_INDEPENDENT_CODE ON)
0036 kconfig_add_kcfg_files(breezedecoration_STATIC breezesettings.kcfgc)
0037 target_link_libraries(breezedecoration_STATIC
0038     PUBLIC
0039         Qt::Core
0040         Qt::Gui
0041         Qt::DBus
0042         KDecoration2::KDecoration
0043     PRIVATE
0044         KF5::ConfigCore
0045         KF5::CoreAddons
0046         KF5::ConfigWidgets
0047         KF5::GuiAddons
0048         KF5::I18n
0049         KF5::IconThemes
0050 )
0051 
0052 ### build library
0053 add_library(breezedecoration MODULE
0054     ${breezedecoration_SRCS}
0055     ${breezedecoration_config_PART_FORMS_HEADERS})
0056 
0057 target_link_libraries(breezedecoration
0058     PRIVATE
0059         breezecommon5
0060         breezedecoration_STATIC
0061         KF5::CoreAddons
0062         KF5::ConfigWidgets
0063         KF5::GuiAddons
0064         KF5::I18n
0065         KF5::IconThemes
0066 )
0067 
0068 install(TARGETS breezedecoration DESTINATION ${KDE_INSTALL_PLUGINDIR}/org.kde.kdecoration2)
0069 
0070 add_subdirectory(config)