778c869e40
(He didn't have time to make it yesterday and will able to commit it next thursday) This patch clean up some : target_link_libraries(kfoo kdeinit_kfoo) which is already done in kde4_add_kdeinit_executable() macro and use "INSTALL_TARGETS_DEFAULT_ARGS" in other place. I tested all compile file, all works fine but if there is a pb send me a mail. CCMAIL: neundorf@kde.org svn path=/trunk/KDE/kdebase/workspace/; revision=795711
37 lines
1 KiB
CMake
37 lines
1 KiB
CMake
ADD_DEFINITIONS(-DKCMRULES)
|
|
########### next target ###############
|
|
|
|
set(kwinrules_SRCS ruleswidget.cpp ruleslist.cpp kwinsrc.cpp detectwidget.cpp)
|
|
|
|
kde4_add_ui_files(kwinrules_SRCS ruleslist.ui detectwidget.ui editshortcut.ui ruleswidgetbase.ui)
|
|
|
|
set(kwin_rules_dialog_KDEINIT_SRCS main.cpp ${kwinrules_SRCS})
|
|
|
|
|
|
kde4_add_kdeinit_executable( kwin_rules_dialog ${kwin_rules_dialog_KDEINIT_SRCS})
|
|
|
|
target_link_libraries(kdeinit_kwin_rules_dialog ${KDE4_KDEUI_LIBS} )
|
|
|
|
install(TARGETS kdeinit_kwin_rules_dialog ${INSTALL_TARGETS_DEFAULT_ARGS} )
|
|
install(TARGETS kwin_rules_dialog ${INSTALL_TARGETS_DEFAULT_ARGS} )
|
|
|
|
########### next target ###############
|
|
|
|
set(kcm_kwinrules_PART_SRCS kcm.cpp ${kwinrules_SRCS})
|
|
|
|
|
|
kde4_add_plugin(kcm_kwinrules ${kcm_kwinrules_PART_SRCS})
|
|
|
|
target_link_libraries(kcm_kwinrules ${KDE4_KDEUI_LIBS} )
|
|
|
|
install(TARGETS kcm_kwinrules DESTINATION ${PLUGIN_INSTALL_DIR} )
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
|
########### install files ###############
|
|
|
|
install( FILES kwinrules.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
|
|
|
|
|