mirror of
https://github.com/json-c/json-c.git
synced 2026-03-20 05:29:07 +08:00
Merge pull request #619 from besser82/topic/besser82/doxygen_oot
CMake: Fix out-of-tree build for Doxygen documentation.
This commit is contained in:
@@ -368,12 +368,13 @@ option(BUILD_DOCUMENTATION "Create and install the HTML based API documentation(
|
|||||||
|
|
||||||
if (DOXYGEN_FOUND)
|
if (DOXYGEN_FOUND)
|
||||||
|
|
||||||
add_custom_target(doc
|
configure_file(${PROJECT_SOURCE_DIR}/Doxyfile.in
|
||||||
COMMAND ${DOXYGEN_EXECUTABLE} ${PROJECT_SOURCE_DIR}/Doxyfile
|
${PROJECT_BINARY_DIR}/Doxyfile)
|
||||||
WORKING_DIRECTORY ${PROJECT_BINARY_DIR})
|
message(STATUS "Written ${PROJECT_BINARY_DIR}/Doxyfile")
|
||||||
|
|
||||||
# request to configure the file
|
add_custom_target(doc
|
||||||
configure_file(Doxyfile Doxyfile)
|
COMMAND ${DOXYGEN_EXECUTABLE} ${PROJECT_BINARY_DIR}/Doxyfile
|
||||||
|
WORKING_DIRECTORY ${PROJECT_BINARY_DIR})
|
||||||
|
|
||||||
else (DOXYGEN_FOUND)
|
else (DOXYGEN_FOUND)
|
||||||
message("Warning: doxygen not found, the 'doc' target will not be included")
|
message("Warning: doxygen not found, the 'doc' target will not be included")
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ PROJECT_NAME = json-c
|
|||||||
# could be handy for archiving the generated documentation or if some version
|
# could be handy for archiving the generated documentation or if some version
|
||||||
# control system is used.
|
# control system is used.
|
||||||
|
|
||||||
PROJECT_NUMBER = 0.14.99
|
PROJECT_NUMBER = @PROJECT_VERSION@
|
||||||
|
|
||||||
# Using the PROJECT_BRIEF tag one can provide an optional one line description
|
# 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
|
# for a project that appears at the top of each page and should give viewer a
|
||||||
@@ -753,7 +753,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 =
|
INPUT = @CMAKE_SOURCE_DIR@ @CMAKE_BINARY_DIR@
|
||||||
|
|
||||||
# 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
|
||||||
Reference in New Issue
Block a user