Skip to content

Commit

Permalink
Minimal doxygen build added, CAC 210401 (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
curtcorum authored Apr 2, 2021
1 parent 1df0e17 commit a89bf6a
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sources/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ set(LIBXTRXLL_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/libxtrxll CACHE INTERNAL
add_subdirectory(libxtrx)
add_subdirectory(xtrx_linux_pcie_drv)

add_subdirectory(docs)

########################################################################
# package generator
########################################################################
Expand Down
24 changes: 24 additions & 0 deletions sources/docs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# from https://vicrucann.github.io/tutorials/quick-cmake-doxygen/

option(BUILD_DOC "Build documentation" ON)

# check if Doxygen is installed
find_package(Doxygen)
if (DOXYGEN_FOUND)
# set input and output files
set(DOXYGEN_IN ${CMAKE_CURRENT_SOURCE_DIR}/../docs/Doxyfile.in)
set(DOXYGEN_OUT ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)

# request to configure the file
configure_file(${DOXYGEN_IN} ${DOXYGEN_OUT} @ONLY)
message("Doxygen build started")

# note the option ALL which allows to build the docs together with the application
add_custom_target( doc_doxygen ALL
COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYGEN_OUT}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Generating API documentation with Doxygen"
VERBATIM )
else (DOXYGEN_FOUND)
message("Doxygen needs to be installed to generate doxygen documentation")
endif (DOXYGEN_FOUND)
23 changes: 23 additions & 0 deletions sources/docs/Doxyfile.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
PROJECT_NAME = "Fairwaves XTRX Software Defined Radio"
PROJECT_BRIEF = "FPGA images, pre-compiled binaries, source and software documentation"

# With the PROJECT_LOGO tag one can specify a logo or an icon that is included
# in the documentation. The maximum height of the logo should not exceed 55
# pixels and the maximum width should not exceed 200 pixels. Doxygen will copy
# the logo to the output directory.

PROJECT_LOGO = "@CMAKE_CURRENT_SOURCE_DIR@/xtrx.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 = "@CMAKE_CURRENT_BINARY_DIR@"
INPUT = "@CMAKE_CURRENT_SOURCE_DIR@/.."

RECURSIVE = YES
EXTRACT_ALL = YES
EXTRACT_PRIVATE = YES
EXTRACT_STATIC = YES
EXTRACT_LOCAL_CLASSES = YES
Binary file added sources/docs/xtrx.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a89bf6a

Please sign in to comment.