summaryrefslogtreecommitdiffstats
path: root/doc/CMakeLists.txt
diff options
context:
space:
mode:
authorAdrian Negreanu <adrian.m.negreanu@intel.com>2015-05-15 14:30:11 (GMT)
committerAdrian Negreanu <adrian.m.negreanu@intel.com>2015-05-15 16:34:41 (GMT)
commit2e099b1950eee2c3a0d5d8ae4b25575caeb938b1 (patch)
tree4db52f4b6a2078ede1554bf586d012eb8d58be4f /doc/CMakeLists.txt
parentac576bd974ac27bc1f395e8ae6c77b19f800b6db (diff)
downloadDoxygen-2e099b1950eee2c3a0d5d8ae4b25575caeb938b1.zip
Doxygen-2e099b1950eee2c3a0d5d8ae4b25575caeb938b1.tar.gz
Doxygen-2e099b1950eee2c3a0d5d8ae4b25575caeb938b1.tar.bz2
use cmake
runtest.pl replaced by testing/test_driver.cmake version.py replaced by cmake/version.cmake lang_cfg.py replaced by cmake/lang_cfg.cmake settings.py implemented in src/CMakeLists.txt increasebuffer.py replaced by defining the YY_BUF_SIZE and YY_READ_BUF_SIZE Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
Diffstat (limited to 'doc/CMakeLists.txt')
-rw-r--r--doc/CMakeLists.txt37
1 files changed, 37 insertions, 0 deletions
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
new file mode 100644
index 0000000..4505391
--- /dev/null
+++ b/doc/CMakeLists.txt
@@ -0,0 +1,37 @@
+find_program(EPSTOPDF NAMES epstopdf )
+find_program(SED NAMES sed )
+
+add_custom_target(doc
+ ALL
+ COMMENT "Generating documentation in ${DOXYDOCS}"
+ COMMAND ${EXECUTABLE_OUTPUT_PATH}/doxygen
+ COMMAND ${CMAKE_COMMAND} -E remove_directory ../latex/refman.tex
+ COMMAND ${CMAKE_COMMAND} -E copy doxygen_logo.gif ../html
+ COMMAND ${CMAKE_COMMAND} -E copy doxygen_logo_low.gif ../html
+ COMMAND ${CMAKE_COMMAND} -E copy Makefile.latex ../latex/Makefile
+ COMMAND ${SED} -e "s/\$$VERSION/$(VERSION)/g" doxygen_manual.tex > ../latex/doxygen_manual.tex
+ COMMAND ${SED} -e "s/\$$VERSION/$(VERSION)/g" doxygen.sty > ../latex/doxygen.sty
+ COMMAND ${EPSTOPDF} doxygen_logo.eps --outfile=../latex/doxygen_logo.pdf
+ DEPENDS doxygen language.doc config.doc
+ WORKING_DIRECTORY ${DOXYDOCS}
+ VERBATIM
+ )
+
+# language.doc
+add_custom_command(
+ COMMAND ${PYTHON_EXECUTABLE} ${DOXYDOCS}/translator.py
+ DEPENDS ${DOXYDOCS}/translator.py
+ DEPENDS maintainers.txt language.tpl translator.py
+ OUTPUT language.doc
+ WORKING_DIRECTORY ${DOXYDOCS}
+)
+set_source_files_properties(${DOXYDOCS}/language.doc PROPERTIES GENERATED 1)
+
+# config.doc
+add_custom_command(
+ COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/src/configgen.py -doc ${CMAKE_SOURCE_DIR}/src/config.xml > config.doc
+ DEPENDS ${CMAKE_SOURCE_DIR}/src/config.xml ${CMAKE_SOURCE_DIR}/src/configgen.py
+ OUTPUT config.doc
+ WORKING_DIRECTORY ${DOXYDOCS}
+)
+set_source_files_properties(${DOXYDOCS}/config.doc PROPERTIES GENERATED 1)