Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt	(revision 793509)
+++ CMakeLists.txt	(working copy)
@@ -1,5 +1,4 @@
 ########### kfmclient ###############
-
 set(kfmclient_SRCS kfmclient.cpp )
 
 qt4_add_dbus_interface( kfmclient_SRCS ../src/org.kde.Konqueror.Main.xml konq_main_interface )
@@ -9,20 +8,10 @@
 add_definitions(-DQT_NO_CAST_ASCII)
 
 kde4_add_app_icon(kfmclient_SRCS "${KDE4_ICON_INSTALL_DIR}/oxygen/*/apps/system-file-manager.png")
+kde4_kdeinit_add_executable(kfmclient ${kfmclient_SRCS})
+kde4_kdeinit_link_libraries(kfmclient ${KDE4_KIO_LIBS})
+kde4_kdeinit_install(kfmclient DESTINATION ${BIN_INSTALL_DIR})
 
-if (WIN32)
-    add_definitions(-Dkdemain=main)
-    kde4_add_executable(kfmclient ${kfmclient_SRCS})
-    target_link_libraries(kfmclient  ${KDE4_KIO_LIBS} )
-else (WIN32)
-    kde4_add_kdeinit_executable( kfmclient NOGUI ${kfmclient_SRCS})
-    target_link_libraries(kdeinit_kfmclient  ${KDE4_KIO_LIBS} )
-    install(TARGETS kdeinit_kfmclient  DESTINATION ${INSTALL_TARGETS_DEFAULT_ARGS} )
-    target_link_libraries( kfmclient kdeinit_kfmclient )
-endif (WIN32)
-
-install(TARGETS kfmclient DESTINATION ${BIN_INSTALL_DIR})
-
 ########### install files ###############
 if( NOT WIN32)
   install( FILES kfmclient_3_2.upd  DESTINATION  ${KCONF_UPDATE_INSTALL_DIR} )