mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 10:52:49 +00:00
68 lines
1.8 KiB
CMake
68 lines
1.8 KiB
CMake
|
|
# for strange kio/foo.h includes
|
|
include_directories(BEFORE ${CMAKE_SOURCE_DIR}/kio)
|
|
|
|
# arpa/nameser.h
|
|
add_subdirectory(kpac)
|
|
add_subdirectory(kntlm)
|
|
|
|
########### next target ###############
|
|
|
|
add_executable(kmailservice kmailservice.cpp)
|
|
|
|
target_link_libraries(kmailservice ${KDE4_KDEUI_LIBS})
|
|
|
|
install(
|
|
TARGETS kmailservice
|
|
${INSTALL_TARGETS_DEFAULT_ARGS}
|
|
)
|
|
install(
|
|
PROGRAMS kmailservice.desktop
|
|
DESTINATION ${XDG_APPS_INSTALL_DIR}
|
|
)
|
|
|
|
########### next target ###############
|
|
|
|
add_executable(ktelnetservice ktelnetservice.cpp)
|
|
|
|
target_link_libraries(ktelnetservice ${KDE4_KDEUI_LIBS})
|
|
|
|
install(
|
|
TARGETS ktelnetservice
|
|
${INSTALL_TARGETS_DEFAULT_ARGS}
|
|
)
|
|
install(
|
|
PROGRAMS ktelnetservice.desktop
|
|
DESTINATION ${XDG_APPS_INSTALL_DIR}
|
|
)
|
|
|
|
########### 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}
|
|
)
|
|
|
|
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}'\")
|
|
")
|
|
|
|
# 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
|
|
)
|