2011-01-10 09:28:00 -06:00
|
|
|
|
2018-06-06 11:42:26 -05:00
|
|
|
set ( LATEX_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/latex )
|
|
|
|
if(BUILD_DOC)
|
2011-01-10 09:28:00 -06:00
|
|
|
set ( LATEX2HTML_CONVERTER_FLAGS "-html_version" "4.0,latin1"
|
|
|
|
"-style" "SoC.css"
|
|
|
|
"-init_file" "${CMAKE_CURRENT_SOURCE_DIR}/.latex2html-init"
|
|
|
|
CACHE STRING "Custom arguments passeds to latex2html" FORCE )
|
|
|
|
|
|
|
|
add_latex_document ( stratus_developper.tex INPUTS
|
|
|
|
man_inst.tex
|
|
|
|
man_model.tex
|
|
|
|
man_net.tex
|
|
|
|
man_stratus.tex
|
|
|
|
see_also.tex
|
|
|
|
)
|
2018-06-06 11:42:26 -05:00
|
|
|
endif()
|
2011-01-10 09:28:00 -06:00
|
|
|
|
2020-02-03 10:44:15 -06:00
|
|
|
set ( htmlInstallDir share/doc/coriolis2/en/html/doc/ )
|
2011-01-10 09:28:00 -06:00
|
|
|
set ( latexInstallDir share/doc/coriolis2/en/latex/stratus_developper )
|
|
|
|
|
2018-06-06 11:42:26 -05:00
|
|
|
make_directory ( "${LATEX_OUTPUT_PATH}/stratus_developper" )
|
|
|
|
execute_process ( COMMAND cp -r "${CMAKE_CURRENT_SOURCE_DIR}/SoC.css" "${LATEX_OUTPUT_PATH}/stratus_developper/SoC.css" )
|
2011-01-10 09:28:00 -06:00
|
|
|
|
2018-06-06 11:42:26 -05:00
|
|
|
install ( FILES ${LATEX_OUTPUT_PATH}/stratus_developper.tex
|
|
|
|
${LATEX_OUTPUT_PATH}/stratus_developper.dvi
|
|
|
|
${LATEX_OUTPUT_PATH}/stratus_developper.pdf DESTINATION ${latexInstallDir} )
|
|
|
|
install ( DIRECTORY ${LATEX_OUTPUT_PATH}/stratus_developper DESTINATION ${htmlInstallDir} )
|