mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-16 10:08:36 +03:00
0027321: Configuration, CMake - check for doxygen during the first configuration and turn on overview building if doxygen is found
This commit is contained in:
parent
c62927c662
commit
9d034c3730
@ -316,7 +316,17 @@ if (ANDROID AND BUILD_MODULE_Draw)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Overview
|
# Overview
|
||||||
set (BUILD_DOC_Overview OFF CACHE BOOL "${BUILD_DOC_Overview_DESCR}")
|
if (NOT DEFINED BUILD_DOC_Overview)
|
||||||
|
set (DO_ONLY_CHECK_FOR_DOXYGEN ON)
|
||||||
|
OCCT_INCLUDE_CMAKE_FILE ("adm/cmake/doxygen")
|
||||||
|
set (DO_ONLY_CHECK_FOR_DOXYGEN OFF)
|
||||||
|
|
||||||
|
if (CAN_DOXYGEN_BE_USED)
|
||||||
|
message (STATUS "Info. Overview building is turned on")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
set (BUILD_DOC_Overview ${CAN_DOXYGEN_BE_USED} CACHE BOOL "${BUILD_DOC_Overview_DESCR}")
|
||||||
|
endif()
|
||||||
|
|
||||||
if (NOT USE_D3D)
|
if (NOT USE_D3D)
|
||||||
list (REMOVE_ITEM Visualization_TOOLKITS TKD3DHost)
|
list (REMOVE_ITEM Visualization_TOOLKITS TKD3DHost)
|
||||||
|
@ -1,5 +1,16 @@
|
|||||||
# doxygen
|
# doxygen
|
||||||
|
|
||||||
|
if (DO_ONLY_CHECK_FOR_DOXYGEN)
|
||||||
|
message (STATUS "Info. Detecting doxygen")
|
||||||
|
set (DOXYGEN_SKIP_DOT ON)
|
||||||
|
find_package (Doxygen)
|
||||||
|
|
||||||
|
set (CAN_DOXYGEN_BE_USED OFF)
|
||||||
|
if (DOXYGEN_EXECUTABLE)
|
||||||
|
set (CAN_DOXYGEN_BE_USED ON)
|
||||||
|
message (STATUS "Info. Doxygen is found and can be used")
|
||||||
|
endif()
|
||||||
|
else()
|
||||||
set (3RDPARTY_DOT_EXECUTABLE_DESCR "The path to the 'dot' tool producing layered drawings of directed graphs.\nThis tool used by doxygen")
|
set (3RDPARTY_DOT_EXECUTABLE_DESCR "The path to the 'dot' tool producing layered drawings of directed graphs.\nThis tool used by doxygen")
|
||||||
set (3RDPARTY_DOXYGEN_EXECUTABLE_DESCR "The path to the doxygen command")
|
set (3RDPARTY_DOXYGEN_EXECUTABLE_DESCR "The path to the doxygen command")
|
||||||
|
|
||||||
@ -12,7 +23,7 @@ if (NOT DEFINED 3RDPARTY_DOT_EXECUTABLE)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (NOT DEFINED 3RDPARTY_SKIP_DOT_EXECUTABLE)
|
if (NOT DEFINED 3RDPARTY_SKIP_DOT_EXECUTABLE)
|
||||||
set (3RDPARTY_SKIP_DOT_EXECUTABLE OFF CACHE BOOL "Skip trying to find Dot")
|
set (3RDPARTY_SKIP_DOT_EXECUTABLE ON CACHE BOOL "Skip trying to find Dot")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (3RDPARTY_SKIP_DOT_EXECUTABLE)
|
if (3RDPARTY_SKIP_DOT_EXECUTABLE)
|
||||||
@ -42,6 +53,7 @@ if (NOT 3RDPARTY_SKIP_DOT_EXECUTABLE)
|
|||||||
list (APPEND 3RDPARTY_NOT_INCLUDED 3RDPARTY_DOT_EXECUTABLE)
|
list (APPEND 3RDPARTY_NOT_INCLUDED 3RDPARTY_DOT_EXECUTABLE)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
# unset all redundant variables
|
# unset all redundant variables
|
||||||
OCCT_CHECK_AND_UNSET (DOXYGEN_SKIP_DOT)
|
OCCT_CHECK_AND_UNSET (DOXYGEN_SKIP_DOT)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user