Add "doc" target to build system if doxygen is available.
This commit is contained in:
@@ -19,7 +19,11 @@ include_directories(${PROJECT_SOURCE_DIR}/src
|
|||||||
|
|
||||||
add_subdirectory(examples)
|
add_subdirectory(examples)
|
||||||
|
|
||||||
|
find_program(doxygen_path doxygen)
|
||||||
|
|
||||||
|
if (EXISTS ${doxygen_path})
|
||||||
|
add_custom_target(doc ${doxygen_path} WORKING_DIRECTORY ${PROJECT_SOURCE_DIR})
|
||||||
|
endif()
|
||||||
|
|
||||||
if (${enable_tests} STREQUAL "on")
|
if (${enable_tests} STREQUAL "on")
|
||||||
enable_testing()
|
enable_testing()
|
||||||
|
|||||||
Reference in New Issue
Block a user