kde-workspace/plasma/runners/kill/CMakeLists.txt
Ivailo Monev c6fca17924 plasma: workaround automatic Qt UI files compilation failure
it tries to put the generated file in target specific directory but the
generated UI header file is required for more than one target, AFAICT the
idea for doing so was rejected by CMake devs not long ago but they may have
changed their minds which leads to incompatibility.

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2017-06-24 05:30:36 +00:00

32 lines
961 B
CMake

project(plasma-runner-kill)
# avoid putting the generated files in target specific
# directory which is the case when automated
set(CMAKE_AUTOUIC OFF)
set(krunner_kill_SRCS killrunner.cpp)
set(kcm_krunner_kill_SRCS
killrunner_config.cpp
)
qt4_wrap_ui(kcm_krunner_kill_SRCS killrunner_config.ui)
kde4_add_plugin(kcm_krunner_kill ${kcm_krunner_kill_SRCS})
target_link_libraries(kcm_krunner_kill
${KDE4_KDECORE_LIBS}
${KDE4_KDEUI_LIBS}
${KDE4_KCMUTILS_LIBS}
${QT_QTCORE_LIBRARY}
${QT_QTGUI_LIBRARY}
)
kde4_add_plugin(krunner_kill ${krunner_kill_SRCS})
target_link_libraries(krunner_kill
${KDE4_PLASMA_LIBS} ${KDE4_KIO_LIBS} processcore)
add_dependencies(krunner_kill kcm_krunner_kill)
install(TARGETS krunner_kill kcm_krunner_kill
DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES plasma-runner-kill.desktop plasma-runner-kill_config.desktop
DESTINATION ${SERVICES_INSTALL_DIR})