Merge pull request #121 from kljohann/cmake.doxy
repair doxygen support
This commit is contained in:
commit
d4df36a598
3 changed files with 22 additions and 6 deletions
|
|
@ -276,9 +276,7 @@ elseif(CMAKE_CXX_COMPILER MATCHES "g\\+\\+")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
if(BUILD_DOCS)
|
|
||||||
add_subdirectory(doc)
|
add_subdirectory(doc)
|
||||||
endif()
|
|
||||||
if(BUILD_EMACSLISP)
|
if(BUILD_EMACSLISP)
|
||||||
add_subdirectory(lisp)
|
add_subdirectory(lisp)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,21 @@
|
||||||
|
if (USE_DOXYGEN)
|
||||||
|
find_package(Doxygen)
|
||||||
|
if(NOT DOXYGEN_FOUND)
|
||||||
|
message(FATAL_ERROR "Could not find doxygen. Reference documentation cannot be built.")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
configure_file(Doxyfile.in Doxyfile @ONLY)
|
||||||
|
add_custom_target(doxygen ALL
|
||||||
|
COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile
|
||||||
|
SOURCES Doxyfile)
|
||||||
|
endif(USE_DOXYGEN)
|
||||||
|
|
||||||
|
########################################################################
|
||||||
|
|
||||||
|
if(NOT BUILD_DOCS)
|
||||||
|
return()
|
||||||
|
endif()
|
||||||
|
|
||||||
set(info_files ledger.texi ledger3.texi)
|
set(info_files ledger.texi ledger3.texi)
|
||||||
|
|
||||||
find_program(MAKEINFO makeinfo)
|
find_program(MAKEINFO makeinfo)
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ PROJECT_NUMBER = 3.0
|
||||||
# If a relative path is entered, it will be relative to the location
|
# 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.
|
# where doxygen was started. If left blank the current directory will be used.
|
||||||
|
|
||||||
OUTPUT_DIRECTORY = %builddir%/doc
|
OUTPUT_DIRECTORY = @CMAKE_CURRENT_BINARY_DIR@
|
||||||
|
|
||||||
# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create
|
# 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
|
# 4096 sub-directories (in 2 levels) under the output directory of each output
|
||||||
|
|
@ -124,7 +124,7 @@ FULL_PATH_NAMES = NO
|
||||||
# If left blank the directory from which doxygen is run is used as the
|
# If left blank the directory from which doxygen is run is used as the
|
||||||
# path to strip.
|
# path to strip.
|
||||||
|
|
||||||
STRIP_FROM_PATH = %srcdir%/src/
|
STRIP_FROM_PATH = @PROJECT_SOURCE_DIR@/src/
|
||||||
|
|
||||||
# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of
|
# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of
|
||||||
# the path mentioned in the documentation of a class, which tells
|
# the path mentioned in the documentation of a class, which tells
|
||||||
|
|
@ -564,7 +564,7 @@ WARN_LOGFILE =
|
||||||
# directories like "/usr/src/myproject". Separate the files or directories
|
# directories like "/usr/src/myproject". Separate the files or directories
|
||||||
# with spaces.
|
# with spaces.
|
||||||
|
|
||||||
INPUT = src
|
INPUT = @PROJECT_SOURCE_DIR@/src
|
||||||
|
|
||||||
# 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, which is
|
# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
|
||||||
Loading…
Add table
Reference in a new issue