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

0001 add_definitions(-DTRANSLATION_DOMAIN="oxygen_kdecoration")
0002 
0003 find_package(KDecoration2 REQUIRED)
0004 find_package(KF6 REQUIRED COMPONENTS CoreAddons ConfigWidgets WindowSystem)
0005 find_package(Qt${QT_MAJOR_VERSION} CONFIG REQUIRED COMPONENTS DBus)
0006 
0007 ### XCB
0008 find_package(XCB COMPONENTS XCB)
0009 set_package_properties(XCB PROPERTIES
0010   DESCRIPTION "X protocol C-language Binding"
0011   URL "http://xcb.freedesktop.org"
0012   TYPE OPTIONAL
0013   PURPOSE "Required to pass style properties to native Windows on X11 Platform"
0014 )
0015 
0016 include_directories(${CMAKE_SOURCE_DIR}/liboxygen)
0017 include_directories(${CMAKE_BINARY_DIR}/liboxygen)
0018 
0019 if(UNIX AND NOT APPLE)
0020 
0021   set(OXYGEN_HAVE_X11 ${XCB_XCB_FOUND})
0022   if (XCB_XCB_FOUND AND QT_MAJOR_VERSION EQUAL "5")
0023     find_package(Qt6 REQUIRED CONFIG COMPONENTS X11Extras)
0024   endif()
0025 
0026 else()
0027 
0028   set(OXYGEN_HAVE_X11 FALSE)
0029 
0030 endif()
0031 
0032 ################# configuration #################
0033 configure_file(config-oxygen.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-oxygen.h )
0034 
0035 ################# newt target #################
0036 ### plugin classes
0037 set(oxygendecoration_SRCS
0038     oxygenbutton.cpp
0039     oxygendecohelper.cpp
0040     oxygendecoration.cpp
0041     oxygenexceptionlist.cpp
0042     oxygensettingsprovider.cpp
0043     oxygensizegrip.cpp)
0044 
0045 kconfig_add_kcfg_files(oxygendecoration_SRCS oxygensettings.kcfgc)
0046 
0047 ### build library
0048 add_library(oxygendecoration MODULE
0049     ${oxygendecoration_SRCS}
0050 )
0051 set_target_properties(oxygendecoration PROPERTIES
0052     OUTPUT_NAME org.kde.oxygen
0053 )
0054 
0055 target_link_libraries(oxygendecoration
0056     PUBLIC
0057         Qt6::Core
0058         Qt6::Gui
0059         Qt6::DBus
0060     PRIVATE
0061         oxygenstyle6
0062         oxygenstyleconfig6
0063         KDecoration2::KDecoration
0064         KF6::ConfigCore
0065         KF6::CoreAddons
0066         KF6::ConfigWidgets
0067         KF6::GuiAddons
0068         KF6::KCMUtils
0069         KF6::I18n
0070         KF6::WindowSystem)
0071 
0072 if(OXYGEN_HAVE_X11)
0073   target_link_libraries(oxygendecoration PUBLIC XCB::XCB  Qt6::GuiPrivate)
0074 endif()
0075 
0076 add_subdirectory(config)
0077 
0078 install(TARGETS oxygendecoration DESTINATION ${KDE_INSTALL_PLUGINDIR}/org.kde.kdecoration2)