diff --git a/kio/misc/CMakeLists.txt b/kio/misc/CMakeLists.txt index b7e4f81aca..e058e68a5b 100644 --- a/kio/misc/CMakeLists.txt +++ b/kio/misc/CMakeLists.txt @@ -1,50 +1,50 @@ # for strange kio/foo.h includes include_directories( BEFORE ${CMAKE_SOURCE_DIR}/kio ) add_subdirectory( ksendbugmail ) if(NOT WIN32) # arpa/nameser.h add_subdirectory( kpac ) endif(NOT WIN32) add_subdirectory( kssld ) add_subdirectory( kwalletd ) add_subdirectory( kntlm ) ########### next target ############### set(kmailservice_SRCS kmailservice.cpp ) kde4_add_executable(kmailservice NOGUI ${kmailservice_SRCS}) target_link_libraries(kmailservice ${KDE4_KDEUI_LIBS} ) install(TARGETS kmailservice DESTINATION ${LIBEXEC_INSTALL_DIR} ) ########### next target ############### set(ktelnetservice_SRCS ktelnetservice.cpp ) kde4_add_executable(ktelnetservice NOGUI ${ktelnetservice_SRCS}) target_link_libraries(ktelnetservice ${KDE4_KDEUI_LIBS} ) install(TARGETS ktelnetservice DESTINATION ${LIBEXEC_INSTALL_DIR} ) ########### install files ############### install( FILES kmailservice.protocol telnet.protocol rlogin.protocol rtsp.protocol ssh.protocol mms.protocol mmst.protocol mmsu.protocol pnm.protocol rtspt.protocol rtspu.protocol DESTINATION ${SERVICES_INSTALL_DIR} ) # install the fileshareset and filesharelist scripts, they are not required on windows if (UNIX) install(PROGRAMS fileshareset DESTINATION ${LIBEXEC_INSTALL_DIR} ) # write a cmake script file which creates the symlink - file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/make_fileshare_symlink.cmake "exec_program(${CMAKE_COMMAND} ARGS -E create_symlink ${LIBEXEC_INSTALL_DIR}/fileshareset ${LIBEXEC_INSTALL_DIR}/filesharelist)\n") + file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/make_fileshare_symlink.cmake "exec_program(${CMAKE_COMMAND} ARGS -E create_symlink ${LIBEXEC_INSTALL_DIR}/fileshareset \"\$ENV{DESTDIR}${LIBEXEC_INSTALL_DIR}/filesharelist\")\n") # and add it as post-install script to any of the installed targets, so it will be executed during "make install" set_target_properties(ktelnetservice PROPERTIES POST_INSTALL_SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/make_fileshare_symlink.cmake) endif (UNIX)