From 778c869e4056424d23617821f2f0085265ed41ef Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Fri, 11 Apr 2008 06:52:03 +0000 Subject: [PATCH] Commit patch from Alex (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 --- CMakeLists.txt | 4 +--- kcmkwin/kwinrules/CMakeLists.txt | 7 ++----- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6270ce182b..1dcd4eac2c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -121,9 +121,7 @@ if (X11_Xfixes_FOUND) endif (X11_Xfixes_FOUND) install(TARGETS kdeinit_kwin ${INSTALL_TARGETS_DEFAULT_ARGS} ) - -target_link_libraries( kwin kdeinit_kwin ) -install(TARGETS kwin DESTINATION ${BIN_INSTALL_DIR}) +install(TARGETS kwin ${INSTALL_TARGETS_DEFAULT_ARGS} ) ########### next target ############### diff --git a/kcmkwin/kwinrules/CMakeLists.txt b/kcmkwin/kwinrules/CMakeLists.txt index 5f474cbf7f..887dc56696 100644 --- a/kcmkwin/kwinrules/CMakeLists.txt +++ b/kcmkwin/kwinrules/CMakeLists.txt @@ -10,13 +10,10 @@ 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} ) +target_link_libraries(kdeinit_kwin_rules_dialog ${KDE4_KDEUI_LIBS} ) install(TARGETS kdeinit_kwin_rules_dialog ${INSTALL_TARGETS_DEFAULT_ARGS} ) - -target_link_libraries( kwin_rules_dialog kdeinit_kwin_rules_dialog ) -install(TARGETS kwin_rules_dialog DESTINATION ${BIN_INSTALL_DIR}) +install(TARGETS kwin_rules_dialog ${INSTALL_TARGETS_DEFAULT_ARGS} ) ########### next target ###############