2014-03-10 08:06:31 -05:00
|
|
|
|
|
|
|
set ( htmlInstallDir share/doc/coriolis2/en/html/users-guide )
|
|
|
|
set ( latexInstallDir share/doc/coriolis2/en/latex/users-guide )
|
|
|
|
|
|
|
|
add_custom_target ( doc_HTML ALL
|
|
|
|
cd ${DOCUMENTATION_SOURCE_DIR}/UsersGuide
|
|
|
|
&& rst2html --link-stylesheet --stylesheet=./SoC.css,./Pygments.css UsersGuide_HTML.rst UsersGuide.html )
|
|
|
|
|
|
|
|
add_custom_target ( doc_LaTeX ALL
|
|
|
|
cd ${DOCUMENTATION_SOURCE_DIR}/UsersGuide
|
2015-04-05 16:43:01 -05:00
|
|
|
&& rst2latex --use-latex-toc --graphicx-option=dvipdfm --stylesheet=./socstyle.tex UsersGuide_LaTeX.rst UsersGuide-raw.tex
|
2014-03-15 04:47:37 -05:00
|
|
|
&& sed 's, \\& \\\\multicolumn{2}{l|}{, \\& \\\\multicolumn{2}{p{0.6\\\\DUtablewidth}|}{,' UsersGuide-raw.tex > UsersGuide.tex )
|
2014-03-10 08:06:31 -05:00
|
|
|
|
|
|
|
install ( DIRECTORY images/
|
|
|
|
DESTINATION ${htmlInstallDir}/images
|
|
|
|
FILES_MATCHING PATTERN "*.png" )
|
|
|
|
install ( FILES SoC.css
|
|
|
|
Pygments.css
|
|
|
|
UsersGuide.html DESTINATION ${htmlInstallDir} )
|
|
|
|
|
|
|
|
install ( DIRECTORY images/
|
|
|
|
DESTINATION ${latexInstallDir}/images
|
|
|
|
FILES_MATCHING PATTERN "*.pdf"
|
2015-04-05 16:43:01 -05:00
|
|
|
PATTERN "*.eps"
|
|
|
|
PATTERN "*.bb" )
|
2014-03-10 08:06:31 -05:00
|
|
|
|
|
|
|
install ( FILES socstyle.tex
|
|
|
|
UsersGuide.tex DESTINATION ${latexInstallDir} )
|