WSL/SLF GitLab Repository

Commit e39c76f1 authored by Mathias Bavay's avatar Mathias Bavay
Browse files

Possibility to install without the documentation (much more pleasant)

parent 997ba4f2
......@@ -141,23 +141,26 @@ ADD_CUSTOM_TARGET(uninstall
"${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
#FindDoxygen
include(FindDoxygen)
FIND_PACKAGE(Doxygen)
if (DOXYGEN_FOUND)
ADD_CUSTOM_TARGET(documentation "doxygen" ${PROJECT_SOURCE_DIR}/meteoio/config.dox)
get_target_property(DOC_TARGET doc TYPE)
if(NOT DOC_TARGET)
add_custom_target(doc)
endif(NOT DOC_TARGET)
add_dependencies(doc documentation)
set(DOC_FILES License.txt doc/SMET_specifications.pdf)
set(DOC_PATH "share/doc/${CMAKE_PROJECT_NAME}")
install(FILES ${DOC_FILES} DESTINATION ${DOC_PATH})
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc/html DESTINATION ${DOC_PATH})
endif (DOXYGEN_FOUND)
install(DIRECTORY "${PROJECT_SOURCE_DIR}/doc/examples" DESTINATION "share/doc/${CMAKE_PROJECT_NAME}" PATTERN ".svn" EXCLUDE
)
set(INSTALL_DOC ON CACHE BOOL "Install documentation ON or OFF")
if(INSTALL_DOC)
set(DOC_PATH "share/doc/${CMAKE_PROJECT_NAME}")
include(FindDoxygen)
FIND_PACKAGE(Doxygen)
if (DOXYGEN_FOUND)
ADD_CUSTOM_TARGET(documentation "doxygen" ${PROJECT_SOURCE_DIR}/meteoio/config.dox)
get_target_property(DOC_TARGET doc TYPE)
if(NOT DOC_TARGET)
add_custom_target(doc)
endif(NOT DOC_TARGET)
add_dependencies(doc documentation)
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc/html DESTINATION ${DOC_PATH})
else (DOXYGEN_FOUND)
message("Doxygen has not been found and is needed to build online documentation. Please either install doxygen or download a documentation-only package!")
endif (DOXYGEN_FOUND)
set(DOC_FILES License.txt doc/SMET_specifications.pdf)
install(FILES ${DOC_FILES} DESTINATION ${DOC_PATH})
install(DIRECTORY "${PROJECT_SOURCE_DIR}/doc/examples" DESTINATION "share/doc/${CMAKE_PROJECT_NAME}" PATTERN ".svn" EXCLUDE )
endif(INSTALL_DOC)
#some cmake specific things
if (GSOAPPP AND NOT EXISTS ${GSOAPPP})
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment