Skip to content
This repository has been archived by the owner on Jul 8, 2022. It is now read-only.

Commit

Permalink
A small doxygen improvement - take version from cmake (#436)
Browse files Browse the repository at this point in the history
Also defines Doxygen output under PROJECT_BINARY_DIR
  • Loading branch information
Ingvord authored Feb 20, 2018
1 parent 9af8e09 commit fb9fc87
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion cppapi/doxygen/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
add_custom_target(doc doxygen ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)

add_custom_target(doc doxygen ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../server
SOURCES Doxyfile)
8 changes: 4 additions & 4 deletions cppapi/doxygen/Doxyfile → cppapi/doxygen/Doxyfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ PROJECT_NAME = "Tango Core Classes Reference "
# could be handy for archiving the generated documentation or if some version
# control system is used.

PROJECT_NUMBER = 9.2.5
PROJECT_NUMBER = @MAJOR_VERSION@.@MINOR_VERSION@.@PATCH_VERSION@

# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
Expand All @@ -51,14 +51,14 @@ PROJECT_BRIEF =
# and the maximum width should not exceed 200 pixels. Doxygen will copy the logo
# to the output directory.

PROJECT_LOGO = ../doxygen/logo.jpg
PROJECT_LOGO = ${PROJECT_SOURCE_DIR}/cppapi/doxygen/logo.jpg

# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path
# into which the generated documentation will be written. If a relative path is
# entered, it will be relative to the location where doxygen was started. If
# left blank the current directory will be used.

OUTPUT_DIRECTORY = ./doxygen
OUTPUT_DIRECTORY = ${PROJECT_BINARY_DIR}/doxygen

# 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
Expand Down Expand Up @@ -1037,7 +1037,7 @@ GENERATE_HTML = YES
# The default directory is: html.
# This tag requires that the tag GENERATE_HTML is set to YES.

HTML_OUTPUT = ../doc_html
HTML_OUTPUT = ${PROJECT_BINARY_DIR}/doc_html

# The HTML_FILE_EXTENSION tag can be used to specify the file extension for each
# generated HTML page (for example: .htm, .php, .asp).
Expand Down

0 comments on commit fb9fc87

Please sign in to comment.