Don't build documentation unless I want it

This commit is contained in:
Dane Johnson 2021-04-05 13:50:50 -05:00
parent b9fb904d23
commit 7575194279

View File

@ -99,8 +99,11 @@ target_link_libraries(couchlib ${BULLET_LIBRARIES})
target_link_libraries(couchlib ${ASSIMP_LIBRARY}) target_link_libraries(couchlib ${ASSIMP_LIBRARY})
## Add documentation ## Add documentation
option(BUILD_DOCUMENTATION "Build the Doxygen documentation" OFF)
if(BUILD_DOCUMENTATION)
find_package(Doxygen REQUIRED find_package(Doxygen REQUIRED
OPTIONAL_COMPONENTS dot mscgen dia) OPTIONAL_COMPONENTS dot mscgen dia)
doxygen_add_docs(couchdocs doxygen_add_docs(couchdocs
. .
mainpage.dox) mainpage.dox)
endif()