Add CMake options to install examples and documentation separately.
This commit is contained in:
parent
20f213bfac
commit
a328e24536
4 changed files with 47 additions and 29 deletions
|
@ -51,12 +51,14 @@ add_custom_target(doc ALL
|
|||
COMMAND ${CMAKE_COMMAND} -E echo "Done."
|
||||
WORKING_DIRECTORY ${DOXYGEN_INPUT_DIR})
|
||||
|
||||
# setup install rules
|
||||
install(DIRECTORY ${DOXYGEN_OUTPUT_DIR}/html
|
||||
DESTINATION ${INSTALL_MISC_DIR}/doc
|
||||
COMPONENT doc)
|
||||
if(DOXYGEN_HHC_PROGRAM)
|
||||
install(FILES ${DOXYGEN_OUTPUT_DIR}/sfml.chm
|
||||
DESTINATION ${INSTALL_MISC_DIR}/doc
|
||||
if(SFML_INSTALL_DOC)
|
||||
# setup install rules
|
||||
install(DIRECTORY ${DOXYGEN_OUTPUT_DIR}/html
|
||||
DESTINATION ${SFML_INSTALL_DOC_PREFIX}/doc
|
||||
COMPONENT doc)
|
||||
endif()
|
||||
if(DOXYGEN_HHC_PROGRAM)
|
||||
install(FILES ${DOXYGEN_OUTPUT_DIR}/sfml.chm
|
||||
DESTINATION ${SFML_INSTALL_DOC_PREFIX}/doc
|
||||
COMPONENT doc)
|
||||
endif()
|
||||
endif()
|
Loading…
Add table
Add a link
Reference in a new issue