nextcloud-desktop/doc/CMakeLists.txt

42 lines
732 B
Text
Raw Normal View History

2009-03-18 12:55:14 +03:00
project(doc C)
2008-02-27 20:56:47 +03:00
# Build the documentation
#
include(UseDoxygen OPTIONAL)
2008-09-03 15:38:45 +04:00
file(GLOB _manpages *.[0-9].txt)
2008-07-03 13:10:12 +04:00
add_custom_target(man
COMMAND
${CMAKE_CURRENT_SOURCE_DIR}/makeman.sh ${_manpages}
WORKING_DIRECTORY
${CMAKE_CURRENT_SOURCE_DIR}
)
2008-09-03 15:38:45 +04:00
add_custom_target(userguide
COMMAND
2012-10-05 16:54:13 +04:00
${CMAKE_CURRENT_SOURCE_DIR}/makeguide.sh ocsync.txt
2008-09-03 15:38:45 +04:00
WORKING_DIRECTORY
${CMAKE_CURRENT_SOURCE_DIR}
)
if (UNIX)
install(
FILES
ocsync.1
DESTINATION
${MAN_INSTALL_DIR}/man1
)
set(DOC_INSTALL_PATH ${SHARE_INSTALL_PREFIX}/doc/ocsync)
endif(UNIX)
if (WIN32)
set(DOC_INSTALL_PATH ${SHARE_INSTALL_PREFIX}/doc)
endif (WIN32)
2008-09-04 12:26:53 +04:00
install(
DIRECTORY
userguide
DESTINATION
${DOC_INSTALL_PATH}
2008-09-04 12:26:53 +04:00
)