Added doxygen
This commit is contained in:
parent
e2e15dd98f
commit
0a7a835bcc
2 changed files with 406 additions and 0 deletions
|
@ -3,6 +3,11 @@ cmake_minimum_required(VERSION 3.10)
|
|||
project(openglu)
|
||||
|
||||
set(build_examples ON CACHE BOOL "Build examples")
|
||||
set(build_documentation ON CACHE BOOL "Generate documentation")
|
||||
|
||||
if(${build_documentation})
|
||||
find_package(Doxygen REQUIRED)
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
add_compile_definitions(OGLU_WIN32)
|
||||
|
@ -35,6 +40,16 @@ target_include_directories(openglu PUBLIC
|
|||
vendor/include
|
||||
)
|
||||
|
||||
if(${build_documentation})
|
||||
configure_file(doxyfile.in ${CMAKE_BINARY_DIR}/doxyfile @ONLY)
|
||||
add_custom_target(openglu_doc ALL
|
||||
COMMAND ${DOXYGEN_EXECUTABLE} "${CMAKE_SOURCE_DIR}/doxyfile.in"
|
||||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
||||
COMMENT "Building documentation..."
|
||||
VERBATIM
|
||||
)
|
||||
endif()
|
||||
|
||||
if(${build_examples})
|
||||
macro(subdirlist result curdir)
|
||||
file(GLOB children RELATIVE ${curdir} ${curdir}/*)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue