1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
file(GLOB man_1 *.1)
install(FILES ${man_1} DESTINATION "${BABEL_DATAROOTDIR}/man/man1")
install(FILES splash.png DESTINATION "${BABEL_DATADIR}/${BABEL_VERSION}")
OPTION(BUILD_DOCS "Build Open Babel documentation" OFF)
IF(BUILD_DOCS)
find_package(Doxygen)
if(NOT DOXYGEN_EXECUTABLE)
return()
endif(NOT DOXYGEN_EXECUTABLE)
IF(DOT)
SET(HAVE_DOT YES)
ELSE(DOT)
SET(HAVE_DOT NO)
ENDIF(DOT)
# This processes our Doxyfile.in and substitutes paths to generate
# a final Doxyfile
CONFIGURE_FILE(${openbabel_SOURCE_DIR}/doc/Doxyfile.in
${openbabel_SOURCE_DIR}/Doxyfile
)
# This creates a new target to build documentation.
# It runs ${DOXYGEN} which is the full path and executable to
# Doxygen on your system, set by the FindDoxygen.cmake module
# It runs the final generated Doxyfile against it.
# The DOT_PATH is substituted into the Doxyfile.
ADD_CUSTOM_TARGET(docs
COMMAND ${DOXYGEN_EXECUTABLE} ${openbabel_SOURCE_DIR}/Doxyfile
WORKING_DIRECTORY ${openbabel_SOURCE_DIR}
)
ENDIF(BUILD_DOCS)
OPTION(BUILD_EXAMPLES "Build Open Babel examples" OFF)
IF(BUILD_EXAMPLES)
add_subdirectory(examples)
ENDIF(BUILD_EXAMPLES)
|