mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
Prevent rebuilding the documentation if this is not necessary.
This commit is contained in:
parent
d2f1886083
commit
1ce1c85ab4
1 changed files with 11 additions and 3 deletions
|
|
@ -26,9 +26,17 @@ if(DOXYGEN_FOUND)
|
|||
if(DOXYGEN_DOT_FOUND)
|
||||
set(top_srcdir ${CMAKE_SOURCE_DIR})
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
|
||||
add_custom_target(doc ALL
|
||||
${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
|
||||
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
|
||||
file(GLOB DOC_INPUT_FILES
|
||||
[^.]*.c
|
||||
[^.]*.dox
|
||||
../[^.]*.h
|
||||
../[^.]*.c
|
||||
)
|
||||
add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/doc/html/index.html"
|
||||
COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
|
||||
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile ${DOC_INPUT_FILES}
|
||||
)
|
||||
add_custom_target(doc ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/doc/html/index.html")
|
||||
install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/doc/html" "${CMAKE_CURRENT_BINARY_DIR}/doc/xml"
|
||||
DESTINATION "${CMAKE_INSTALL_PREFIX}/share/doc/linphone-${LINPHONE_VERSION}")
|
||||
else()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue