2016-03-22 09:38:26 -05:00
|
|
|
# -*- mode: CMAKE; explicit-buffer-name: "CMakeLists.txt<UsersGuide>" -*-
|
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 )
|
2016-03-22 09:38:26 -05:00
|
|
|
add_dependencies ( doc_HTML SoC.css Pygments.css UsersGuide_HTML.rst UsersGuide.rst )
|
2014-03-10 08:06:31 -05:00
|
|
|
|
|
|
|
add_custom_target ( doc_LaTeX ALL
|
|
|
|
cd ${DOCUMENTATION_SOURCE_DIR}/UsersGuide
|
2016-03-22 09:38:26 -05:00
|
|
|
&& rst2latex --use-latex-toc --stylesheet=./socstyle.tex UsersGuide_LaTeX.rst UsersGuide-raw.tex
|
|
|
|
&& sed 's, \\& \\\\multicolumn{2}{l|}{, \\& \\\\multicolumn{2}{p{0.6\\\\DUtablewidth}|}{,' UsersGuide-raw.tex > UsersGuide.tex
|
|
|
|
&& latex UsersGuide
|
|
|
|
&& latex UsersGuide
|
|
|
|
&& latex UsersGuide
|
|
|
|
&& dvipdfm UsersGuide
|
|
|
|
)
|
2017-05-26 06:32:30 -05:00
|
|
|
add_dependencies ( doc_LaTeX socstyle.tex UsersGuide_LaTeX.rst UsersGuide.rst )
|
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} )
|