Commit 6b804c61 authored by Johan Pascal's avatar Johan Pascal

Add make doc

parent d18af7c9
...@@ -92,6 +92,18 @@ install(FILES ...@@ -92,6 +92,18 @@ install(FILES
DESTINATION ${ConfigPackageLocation} DESTINATION ${ConfigPackageLocation}
) )
# Doxygen
find_package(Doxygen)
if (DOXYGEN_FOUND)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)
add_custom_target(doc
${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
DEPENDS generatedCode
COMMENT "Generating API documentation with Doxygen" VERBATIM
)
endif()
# CPack settings # CPack settings
set(CPACK_PACKAGE_NAME "decaf") set(CPACK_PACKAGE_NAME "decaf")
set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION}) set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
......
...@@ -58,7 +58,7 @@ PROJECT_LOGO = ...@@ -58,7 +58,7 @@ PROJECT_LOGO =
# entered, it will be relative to the location where doxygen was started. If # entered, it will be relative to the location where doxygen was started. If
# left blank the current directory will be used. # left blank the current directory will be used.
OUTPUT_DIRECTORY = build/doc OUTPUT_DIRECTORY = doc
# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create 4096 sub- # If the CREATE_SUBDIRS tag is set to YES, then doxygen will create 4096 sub-
# directories (in 2 levels) under the output directory of each output format and # directories (in 2 levels) under the output directory of each output format and
...@@ -751,7 +751,7 @@ WARN_LOGFILE = ...@@ -751,7 +751,7 @@ WARN_LOGFILE =
# spaces. # spaces.
# Note: If this tag is empty the current directory is searched. # Note: If this tag is empty the current directory is searched.
INPUT = src/GENERATED/include src/GENERATED/include/decaf INPUT = @GSOURCE_PATH@
# This tag can be used to specify the character encoding of the source files # This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses # that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
......
...@@ -110,6 +110,11 @@ are modified, to build only these files: ...@@ -110,6 +110,11 @@ are modified, to build only these files:
make decaf_tables make decaf_tables
Doxygen generated documentation is located in ./doc directory in the
binary tree after running
make doc
## Licensing ## Licensing
Most of the source files here are by Mike Hamburg. Those files are (c) Most of the source files here are by Mike Hamburg. Those files are (c)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment