kdelibs/kio/misc/CMakeLists.txt

69 lines
1.8 KiB
Text
Raw Normal View History

2014-11-13 01:04:59 +02:00
# for strange kio/foo.h includes
include_directories(BEFORE ${CMAKE_SOURCE_DIR}/kio)
2014-11-13 01:04:59 +02:00
2014-11-27 18:22:42 +00:00
# arpa/nameser.h
add_subdirectory(kpac)
add_subdirectory(kntlm)
2014-11-13 01:04:59 +02:00
########### next target ###############
add_executable(kmailservice kmailservice.cpp)
2014-11-13 01:04:59 +02:00
target_link_libraries(kmailservice ${KDE4_KDECORE_LIBS})
2014-11-13 01:04:59 +02:00
install(
TARGETS kmailservice
${INSTALL_TARGETS_DEFAULT_ARGS}
)
install(
PROGRAMS kmailservice.desktop
DESTINATION ${XDG_APPS_INSTALL_DIR}
)
2014-11-13 01:04:59 +02:00
########### next target ###############
add_executable(ktelnetservice ktelnetservice.cpp)
2014-11-13 01:04:59 +02:00
target_link_libraries(ktelnetservice ${KDE4_KDEUI_LIBS})
2014-11-13 01:04:59 +02:00
install(
TARGETS ktelnetservice
${INSTALL_TARGETS_DEFAULT_ARGS}
)
install(
PROGRAMS ktelnetservice.desktop
DESTINATION ${XDG_APPS_INSTALL_DIR}
)
2014-11-13 01:04:59 +02:00
########### install files ###############
install(
FILES
rtsp.protocol
mms.protocol
mmst.protocol
mmsu.protocol
pnm.protocol
rtspt.protocol
rtspu.protocol
DESTINATION ${SERVICES_INSTALL_DIR}
)
install(
PROGRAMS fileshareset
DESTINATION ${LIBEXEC_INSTALL_DIR}
)
2014-11-13 01:04:59 +02:00
install(CODE "
set(FILESHARESET_PATH \"\$ENV{DESTDIR}${LIBEXEC_INSTALL_DIR}/fileshareset\")
EXECUTE_PROCESS(COMMAND sh -c \"chown 0 '\${FILESHARESET_PATH}' && chmod u+s '\${FILESHARESET_PATH}'\")
")
2014-11-13 01:04:59 +02:00
# 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 \"\$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
)