kwin/kcmkwin/kwinscripts/CMakeLists.txt
Martin Gräßlin dbf2218338 [kwin] kde4_add_ui_files -> qt5_wrap_ui
Less deprecated CMake usage.
2014-03-18 11:06:56 +01:00

24 lines
622 B
CMake

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/version.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/version.h)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
set(kcm_SRCS
main.cpp
module.cpp
)
qt5_wrap_ui(kcm_SRCS module.ui)
add_library(kcm_kwin_scripts MODULE ${kcm_SRCS})
target_link_libraries(kcm_kwin_scripts
Qt5::DBus
KF5::KCMUtils
KF5::KIOCore
KF5::I18n
KF5::Plasma
KF5::NewStuff
)
install(TARGETS kcm_kwin_scripts DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES kwinscripts.desktop DESTINATION ${SERVICES_INSTALL_DIR})
install(FILES kwinscripts.knsrc DESTINATION ${CONFIG_INSTALL_DIR})