mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 19:02:51 +00:00

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>
32 lines
961 B
CMake
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})
|