Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: fix doxygen configuration to actually find evsql.h vol2: can haz…
… `git add ...`
- Loading branch information
Showing
2 changed files
with
14 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,35 @@ | ||
# We need Doxygen | ||
find_package (Doxygen) | ||
|
||
# set our .dox path | ||
# path to .dox with general project info | ||
set (PROJECT_DOX_FILE "${CMAKE_CURRENT_SOURCE_DIR}/evsql.dox") | ||
|
||
# where to install doxygen output | ||
# source file/dirs to generate docs from | ||
set (PROJECT_DOC_SOURCES "${PROJECT_SOURCE_DIR}/src/include/evsql.h") | ||
|
||
# generate doxygen output under .../html | ||
set (PROJECT_DOXYGEN_DIR "${PROJECT_SOURCE_DIR}/doc") | ||
|
||
IF (DOXYGEN_FOUND) | ||
# doxygen config path | ||
set (DOXYGEN_CONFIG "${CMAKE_CURRENT_BINARY_DIR}/doxygen.conf") | ||
|
||
# doxygen.conf.in -> doxygen.conf | ||
configure_file ( | ||
${CMAKE_CURRENT_SOURCE_DIR}/doxygen.conf.in | ||
${CMAKE_CURRENT_BINARY_DIR}/doxygen.conf | ||
${DOXYGEN_CONFIG} | ||
@ONLY | ||
) | ||
|
||
# set doxygen config path | ||
set (DOXYGEN_CONFIG "${CMAKE_CURRENT_BINARY_DIR}/doxygen.conf") | ||
|
||
# add custom doc target | ||
ADD_CUSTOM_TARGET( | ||
doc | ||
ADD_CUSTOM_TARGET(doc | ||
${DOXYGEN_EXECUTABLE} ${DOXYGEN_CONFIG} | ||
) | ||
|
||
MESSAGE (STATUS "Doxygen: output will be installed in ${PROJECT_DOXYGEN_DIR}") | ||
MESSAGE (STATUS "Doxygen: output will be generated in ${PROJECT_DOXYGEN_DIR}/html") | ||
|
||
ELSE (DOXYGEN_FOUND) | ||
MESSAGE (STATUS "Doxygen: not found :(") | ||
MESSAGE (STATUS "Doxygen: install `doxygen` and rerun cmake to use `make doc`") | ||
|
||
ENDIF (DOXYGEN_FOUND) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters