Commit 7a90b4d9 authored by Martin Heistermann's avatar Martin Heistermann

doc cmake: fail gracefully if we cannot find doxygen; simplify

parent a66dba8e
find_package(Doxygen REQUIRED dot) find_package(Doxygen)
set(TARGET_NAME "${OVM_TARGET_PREFIX}doc")
if (DOXYGEN_FOUND) if (DOXYGEN_FOUND)
set(DOXYGEN_PROJECT_LOGO "${CMAKE_CURRENT_SOURCE_DIR}/html/logo_vci.png") set(DOXYGEN_PROJECT_LOGO "${CMAKE_CURRENT_SOURCE_DIR}/html/logo_vci.png")
...@@ -27,7 +26,7 @@ if (DOXYGEN_FOUND) ...@@ -27,7 +26,7 @@ if (DOXYGEN_FOUND)
set(DOXYGEN_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/Build/share/doc/OpenVolumeMesh") set(DOXYGEN_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/Build/share/doc/OpenVolumeMesh")
endif() endif()
doxygen_add_docs(${TARGET_NAME} doxygen_add_docs("${OVM_TARGET_PREFIX}doc"
"${CMAKE_CURRENT_SOURCE_DIR}/" "${CMAKE_CURRENT_SOURCE_DIR}/"
"${CMAKE_CURRENT_SOURCE_DIR}/../src" "${CMAKE_CURRENT_SOURCE_DIR}/../src"
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment