Skip to content
Snippets Groups Projects
Commit 168ab99f authored by Langella Olivier's avatar Langella Olivier
Browse files

cmake files to build the manpage

parent 259a6d41
No related branches found
No related tags found
No related merge requests found
......@@ -149,6 +149,7 @@ endif(CMAKE_INSTALL_PREFIX)
# Subdirectories
add_subdirectory(src)
add_subdirectory(doc)
if(UNIX)
# Doxygen
......
message("")
message(STATUS "${BoldGreen}Starting configuration for the doc material for ${CMAKE_PROJECT_NAME} ${ColourReset}")
message("")
# The UNIX man pages
if(UNIX AND NOT APPLE)
message(STATUS "Going to generate the man pages.")
execute_process(COMMAND docbook-to-man xtpcpp.xml
OUTPUT_FILE ${CMAKE_BINARY_DIR}/xtpcpp
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
endif(UNIX AND NOT APPLE)
###############
# install stuff
# The history and licence files.
message("Installing the doc files in ${DOC_DIR}")
# The man page.
if(UNIX AND NOT APPLE)
install(FILES ${CMAKE_BINARY_DIR}/xtpcpp
${CMAKE_BINARY_DIR}/xtpcpp
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/man/man1)
endif()
message("")
message(STATUS "${BoldGreen}Finished configuration of the doc material.${ColourReset}")
message("")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment