forked from simbody/simbody
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApiDoxygen.cmake
24 lines (18 loc) · 863 Bytes
/
ApiDoxygen.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
include(FindDoxygen)
if(DOXYGEN_EXECUTABLE-NOTFOUND)
else(DOXYGEN_EXECUTABLE-NOTFOUND)
set(DOXY_CONFIG "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile")
# These are used in Doxyfile.in and SimbodyConfig.cmake.in.
set(SIMBODY_INSTALL_DOXYGENDIR "${CMAKE_INSTALL_DOCDIR}/api")
set(SIMBODY_DOXYGEN_TAGFILE_NAME "SimbodyDoxygenTagfile")
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in
${DOXY_CONFIG}
@ONLY )
add_custom_target(doxygen ${DOXYGEN_EXECUTABLE} ${DOXY_CONFIG})
file(MAKE_DIRECTORY "${PROJECT_BINARY_DIR}/html/")
install(DIRECTORY "${PROJECT_BINARY_DIR}/html/"
DESTINATION "${SIMBODY_INSTALL_DOXYGENDIR}"
)
# This is just a shortcut to the Doxygen index.html.
install(FILES "SimbodyAPI.html" DESTINATION "${CMAKE_INSTALL_DOCDIR}")
endif(DOXYGEN_EXECUTABLE-NOTFOUND)