Automatic apidox installation using CMake code

instead of an external shell script from cmake submodule.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/28/head
Slávek Banko 4 years ago
parent 9768f5dfe2
commit 2d10834c46
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -68,6 +68,14 @@ add_custom_target( apidox
)
add_custom_target( install-apidox
COMMAND "./install_apidox" "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}" "${APIDOX_HTML_DIRECTORY}"
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/cmake/"
)
COMMAND ${CMAKE_COMMAND} -E echo Apidox installed in /${APIDOX_HTML_DIRECTORY}
)
install( CODE "
if( EXISTS ${CMAKE_BINARY_DIR}/${APIDOX_HTML_DIRECTORY} )
file(
INSTALL ${CMAKE_BINARY_DIR}/${APIDOX_HTML_DIRECTORY}/en
DESTINATION /${APIDOX_HTML_DIRECTORY}
)
endif()"
)

Loading…
Cancel
Save