2009-03-18 12:55:14 +03:00
|
|
|
project(doc C)
|
2008-02-27 20:56:47 +03:00
|
|
|
# Build the documentation
|
|
|
|
#
|
|
|
|
|
2008-09-10 12:50:49 +04:00
|
|
|
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}
|
|
|
|
)
|
|
|
|
|
2013-07-17 16:38:22 +04:00
|
|
|
if (UNIX)
|
|
|
|
install(
|
2013-08-18 18:21:18 +04:00
|
|
|
FILES
|
|
|
|
ocsync.1
|
|
|
|
DESTINATION
|
|
|
|
${MAN_INSTALL_DIR}/man1
|
|
|
|
)
|
2013-08-18 18:29:35 +04:00
|
|
|
set(DOC_INSTALL_PATH ${SHARE_INSTALL_PREFIX}/doc/ocsync)
|
2013-07-17 16:38:22 +04:00
|
|
|
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
|
2013-07-17 16:38:22 +04:00
|
|
|
${DOC_INSTALL_PATH}
|
2008-09-04 12:26:53 +04:00
|
|
|
)
|