Skip to content

Commit

Permalink
Make doxygen work with CMake >= 3.17
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Jun 28, 2022
1 parent 71d5bdb commit d18b7e4
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions doc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,19 @@ SET( DOC_BIN_DIR "${PROJECT_BINARY_DIR}/docbuild" )
# directories to search for documentation
SET( DOX_INPUT overview.html ../include/gear ../src )

FILE(GLOB GEAR_DOXYGEN_SOURCES
../include/gear/*
../include/gear/gearcga/*
../include/gear/gearimpl/*
../include/gear/geartgeo/*
../include/gear/gearsurf/*
../include/gear/gearxml/*
../src/gearcga/*
../src/gearimpl/*
../src/geartgeo/*
../src/gearsurf/*
../src/gearxml/*
)

# custom command to build documentation
ADD_CUSTOM_COMMAND(
Expand All @@ -24,19 +37,8 @@ ADD_CUSTOM_COMMAND(
"${DOXYGEN_EXECUTABLE}"
WORKING_DIRECTORY "${DOC_SRC_DIR}"
COMMENT "Building API Documentation..."
DEPENDS overview.html Doxyfile CMakeLists.txt
../include/gear/*
../include/gear/gearcga/*
../include/gear/gearimpl/*
../include/gear/geartgeo/*
../include/gear/gearsurf/*
../include/gear/gearxml/*
../src/gearcga/*
../src/gearimpl/*
../src/geartgeo/*
../src/gearsurf/*
../src/gearxml/*
)
DEPENDS overview.html Doxyfile CMakeLists.txt ${GEAR_DOXYGEN_SOURCES}
)

ADD_CUSTOM_TARGET( doc DEPENDS "${DOC_BIN_DIR}/html/index.html" )

Expand Down

0 comments on commit d18b7e4

Please sign in to comment.