2010-05-21 11:54:41 -05:00
|
|
|
|
2010-05-26 17:13:22 -05:00
|
|
|
set ( LATEX2HTML_CONVERTER_FLAGS "-html_version" "4.0,latin1,unicode"
|
|
|
|
"-style" "SoC.css"
|
|
|
|
"-init_file" "${CMAKE_CURRENT_SOURCE_DIR}/.latex2html-init"
|
|
|
|
CACHE STRING "Custom arguments passeds to latex2html" FORCE )
|
|
|
|
|
|
|
|
add_latex_document ( README.tex IMAGE_DIRS images )
|
2010-05-21 11:54:41 -05:00
|
|
|
|
|
|
|
set ( htmlInstallDir share/doc/coriolis2/ )
|
|
|
|
set ( latexInstallDir share/doc/coriolis2/ )
|
|
|
|
|
|
|
|
latex_get_output_path ( output_dir )
|
2010-05-26 17:13:22 -05:00
|
|
|
|
2010-05-31 09:22:18 -05:00
|
|
|
#file ( COPY "${CMAKE_CURRENT_SOURCE_DIR}/SoC.css" DESTINATION "${output_dir}/README" )
|
|
|
|
make_directory ( "${output_dir}/README" )
|
|
|
|
execute_process ( COMMAND cp -r "${CMAKE_CURRENT_SOURCE_DIR}/SoC.css" "${output_dir}/README" )
|
|
|
|
|
2010-05-21 11:54:41 -05:00
|
|
|
install ( FILES ${output_dir}/README.tex
|
|
|
|
${output_dir}/README.dvi
|
|
|
|
${output_dir}/README.pdf
|
|
|
|
DESTINATION ${latexInstallDir} )
|
2010-05-26 17:13:22 -05:00
|
|
|
install ( DIRECTORY ${output_dir}/README DESTINATION ${htmlInstallDir} )
|
2011-02-02 05:17:46 -06:00
|
|
|
install ( FILES general-index.html DESTINATION ${htmlInstallDir}/en RENAME index.html )
|
2010-08-12 21:01:18 -05:00
|
|
|
|
2011-02-02 05:17:46 -06:00
|
|
|
#IF(DOXYGEN_FOUND)
|
|
|
|
# add_subdirectory(doxygen)
|
|
|
|
#ENDIF(DOXYGEN_FOUND)
|