QortalOS Brooklyn for Raspberry Pi 4
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

96 lines
2.8 KiB

# KI18N Translation Domain for this library
add_definitions(-DTRANSLATION_DOMAIN=\"kcm_lookandfeel\")
if(X11_Xcursor_FOUND)
set(HAVE_XCURSOR TRUE)
endif()
if(${Breeze_FOUND})
if(${BREEZE_WITH_KDECORATION})
set(HAVE_BREEZE_DECO TRUE)
endif()
endif()
configure_file (config-kcm.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kcm.h )
add_library(lookandfeelmanager STATIC
lookandfeelmanager.cpp
../colors/colorsapplicator.cpp
../kcms-common.cpp
)
if (X11_Xcursor_FOUND)
target_sources(lookandfeelmanager PRIVATE
../cursortheme/xcursor/cursortheme.cpp
../cursortheme/xcursor/xcursortheme.cpp
)
endif ()
kcmutils_generate_module_data(
lookandfeeldata
MODULE_DATA_HEADER lookandfeeldata.h
MODULE_DATA_CLASS_NAME LookAndFeelData
SETTINGS_HEADERS lookandfeelsettings.h
SETTINGS_CLASSES LookAndFeelSettings
)
target_sources(lookandfeelmanager PRIVATE ${lookandfeeldata})
kconfig_add_kcfg_files(lookandfeelmanager lookandfeelsettings.kcfgc GENERATE_MOC)
target_link_libraries(lookandfeelmanager
Qt::DBus
KF5::ConfigCore
KF5::GuiAddons
KF5::I18n
KF5::KIOGui
KF5::KCMUtils
KF5::NewStuff
KF5::Package
PlasmaAutostart
krdb
)
if(X11_FOUND)
target_link_libraries(lookandfeelmanager Qt::X11Extras)
endif()
if (X11_Xcursor_FOUND)
target_link_libraries(lookandfeelmanager X11::Xcursor)
endif ()
if (X11_Xfixes_FOUND)
target_link_libraries(lookandfeelmanager X11::Xfixes)
endif ()
add_library(kcm_lookandfeel_objects OBJECT kcm.cpp)
target_link_libraries(kcm_lookandfeel_objects
lookandfeelmanager
KF5::IconThemes
KF5::JobWidgets
KF5::KIOGui
KF5::QuickAddons
PW::KWorkspace
)
kcoreaddons_add_plugin(kcm_lookandfeel SOURCES kcmmain.cpp INSTALL_NAMESPACE "plasma/kcms/systemsettings")
target_link_libraries(kcm_lookandfeel kcm_lookandfeel_objects)
#this desktop file is installed only for retrocompatibility with sycoca
install(FILES lookandfeelsettings.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR})
install(FILES kcm_lookandfeel.desktop DESTINATION ${KDE_INSTALL_APPDIR})
install(FILES lookandfeel.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR})
if(BUILD_TESTING)
find_package(Qt5Test ${QT_MIN_VERSION} CONFIG REQUIRED)
add_subdirectory(autotests)
endif()
kpackage_install_package(package kcm_lookandfeel kcms)
###### Command line tool
add_executable(plasma-apply-lookandfeel lnftool.cpp)
target_link_libraries(plasma-apply-lookandfeel kcm_lookandfeel_objects)
ADD_CUSTOM_TARGET(plasma-apply-lookandfeel_link ALL
COMMAND ${CMAKE_COMMAND} -E create_symlink ${KDE_INSTALL_FULL_BINDIR}/plasma-apply-lookandfeel ${CMAKE_CURRENT_BINARY_DIR}/lookandfeeltool)
install( FILES ${CMAKE_CURRENT_BINARY_DIR}/lookandfeeltool DESTINATION ${KDE_INSTALL_FULL_BINDIR}/ )
install( TARGETS plasma-apply-lookandfeel ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )