Skip to content

Commit

Permalink
Merge pull request #631 from theGreatWhiteShark/docsDoxygen
Browse files Browse the repository at this point in the history
creating ./docs folder while compiling docs
  • Loading branch information
jeremyz authored Jul 24, 2018
2 parents a89f053 + 869d6be commit fec1a93
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,14 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
find_package(Doxygen)
if(DOXYGEN_FOUND)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)
file(MAKE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/docs)
add_custom_target(doc_dir ALL COMMAND ${CMAKE_COMMAND}
-E make_directory ${CMAKE_CURRENT_SOURCE_DIR}/docs)
add_custom_target(doc
${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/docs
COMMENT "Generating API documentation with Doxygen" VERBATIM
)
COMMENT "Generating API documentation with Doxygen"
VERBATIM DEPENDS doc_dir)
endif(DOXYGEN_FOUND)

#
Expand Down

0 comments on commit fec1a93

Please sign in to comment.