Skip to content

Commit

Permalink
build system: updated cmake file for docs target
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Oct 15, 2020
1 parent 0156258 commit e0e0be1
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions docs/CMakeLists.txt
Expand Up @@ -2,23 +2,19 @@
# Doxygen configuration (documentation)
#

set(TARGET_DOCS docs)

set(DOXY_IN_FILE doxy.in)

set(DOXY_DEPS_DIRECTORY ${uvw_SOURCE_DIR}/deps)
set(DOXY_SOURCE_DIRECTORY ${uvw_SOURCE_DIR}/src)
set(DOXY_DOCS_DIRECTORY ${uvw_SOURCE_DIR}/docs)
set(DOXY_OUTPUT_DIRECTORY ${uvw_BINARY_DIR}/docs)
set(DOXY_CFG_FILE doxy.cfg)
set(DOXY_DOCS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
set(DOXY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})

configure_file(${DOXY_IN_FILE} ${DOXY_CFG_FILE} @ONLY)
configure_file(doxy.in doxy.cfg @ONLY)

add_custom_target(
${TARGET_DOCS}
COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/${DOXY_CFG_FILE}
docs ALL
COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/doxy.cfg
WORKING_DIRECTORY ${uvw_SOURCE_DIR}
VERBATIM
SOURCES ${DOXY_IN_FILE}
SOURCES doxy.in
)

install(
Expand Down

0 comments on commit e0e0be1

Please sign in to comment.