CMakeLists.txt: add BUILD_DOC option (#165)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
This commit is contained in:
parent
7a8e526adf
commit
2cef4d6f20
1
AUTHORS
1
AUTHORS
@ -23,3 +23,4 @@ slyshykO
|
|||||||
bmagistro
|
bmagistro
|
||||||
richardbmx
|
richardbmx
|
||||||
wnsgml972
|
wnsgml972
|
||||||
|
ffontaine
|
||||||
|
|||||||
@ -56,14 +56,19 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY bin)
|
|||||||
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
||||||
|
|
||||||
include(FindThreads)
|
include(FindThreads)
|
||||||
find_package(Doxygen 1.8)
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Referenced directories and targets
|
# Referenced directories and targets
|
||||||
#
|
#
|
||||||
|
|
||||||
if(DOXYGEN_FOUND)
|
option(BUILD_DOC "Build documentation" ON)
|
||||||
add_subdirectory(docs)
|
|
||||||
|
if(BUILD_DOCS)
|
||||||
|
find_package(Doxygen 1.8)
|
||||||
|
|
||||||
|
if(DOXYGEN_FOUND)
|
||||||
|
add_subdirectory(docs)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(BUILD_TESTING)
|
if(BUILD_TESTING)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user