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
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/makeguide.sh csync.txt
|
|
|
|
WORKING_DIRECTORY
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
)
|
|
|
|
|
2008-07-03 13:10:12 +04:00
|
|
|
install(
|
|
|
|
FILES
|
|
|
|
csync.1
|
|
|
|
DESTINATION
|
|
|
|
${MAN_INSTALL_DIR}/man1
|
|
|
|
)
|
2008-09-04 12:26:53 +04:00
|
|
|
|
|
|
|
install(
|
|
|
|
DIRECTORY
|
|
|
|
userguide
|
|
|
|
DESTINATION
|
2008-09-10 12:39:43 +04:00
|
|
|
${SHARE_INSTALL_PREFIX}/doc/csync
|
2008-09-04 12:26:53 +04:00
|
|
|
)
|