Skip to content

Commit 305ae62

Browse files
committed
docs: use cmake to configure doxyfile
1 parent 7975283 commit 305ae62

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,10 +257,10 @@ INSTALL(FILES "${PROJECT_BINARY_DIR}/freenect2.pc" DESTINATION lib/pkgconfig/)
257257

258258
find_package(Doxygen)
259259
IF(DOXYGEN_FOUND)
260+
CONFIGURE_FILE(Doxyfile.in "${PROJECT_BINARY_DIR}/Doxyfile" @ONLY)
260261
add_custom_target(
261262
doc
262-
COMMAND "DOXYGEN_OUTPUT_DIR=${PROJECT_BINARY_DIR}/doc" ${DOXYGEN_EXECUTABLE} Doxyfile
263-
WORKING_DIRECTORY "${MY_DIR}"
263+
COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile
264264
)
265265
ENDIF()
266266

Doxyfile renamed to Doxyfile.in

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ DOXYFILE_ENCODING = UTF-8
3232
# title of most generated pages and in a few other places.
3333
# The default value is: My Project.
3434

35-
PROJECT_NAME = "libfreenect2"
35+
PROJECT_NAME = @PROJECT_NAME@
3636

3737
# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
3838
# could be handy for archiving the generated documentation or if some version
@@ -58,7 +58,7 @@ PROJECT_LOGO =
5858
# entered, it will be relative to the location where doxygen was started. If
5959
# left blank the current directory will be used.
6060

61-
OUTPUT_DIRECTORY = "$(DOXYGEN_OUTPUT_DIR)"
61+
OUTPUT_DIRECTORY = @PROJECT_BINARY_DIR@/doc
6262

6363
# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create 4096 sub-
6464
# directories (in 2 levels) under the output directory of each output format and
@@ -743,8 +743,7 @@ WARN_LOGFILE =
743743
# spaces.
744744
# Note: If this tag is empty the current directory is searched.
745745

746-
INPUT = include \
747-
examples
746+
INPUT = @CMAKE_SOURCE_DIR@/include
748747

749748
# This tag can be used to specify the character encoding of the source files
750749
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
@@ -1906,7 +1905,7 @@ SEARCH_INCLUDES = YES
19061905
# preprocessor.
19071906
# This tag requires that the tag SEARCH_INCLUDES is set to YES.
19081907

1909-
INCLUDE_PATH =
1908+
INCLUDE_PATH = @PROJECT_BINARY_DIR@
19101909

19111910
# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard
19121911
# patterns (like *.h and *.hpp) to filter out the header-files in the

0 commit comments

Comments
 (0)