Skip to content
Snippets Groups Projects

Update waves

Merged Boman Romain requested to merge adrien into master
2 files
+ 2508
0
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 26
0
@@ -37,6 +37,9 @@ OPTION(WAVES_USE_SPH "Compile sph module" ON)
OPTION(WAVES_USE_TLNOS "Compile tlnos module" OFF)
OPTION(WAVES_USE_WAVES "Compile waves module" ON)
# build the doxygen documentation
option(BUILD_DOC "Build documentation" OFF)
# macros/fcts
INCLUDE(fwkMacros)
@@ -89,6 +92,29 @@ ELSE()
SET(CMAKE_SWIG_OUTDIR "${EXECUTABLE_OUTPUT_PATH}")
ENDIF()
# -- Doxygen (https://vicrucann.github.io/tutorials/quick-cmake-doxygen/)
# check if Doxygen is installed
find_package(Doxygen)
IF(DOXYGEN_FOUND)
# set input and output files
set(DOXYGEN_IN ${PROJECT_SOURCE_DIR}/Doxyfile.in)
set(DOXYGEN_OUT ${PROJECT_BINARY_DIR}/Doxyfile)
# request to configure the file
configure_file(${DOXYGEN_IN} ${DOXYGEN_OUT} @ONLY)
#message("Doxygen build started")
# note the option ALL which allows to build the docs together with the application
# "make dox" rebuilds the doc
add_custom_target( dox #ALL
COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYGEN_OUT}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Generating API documentation with Doxygen"
VERBATIM )
ELSE(DOXYGEN_FOUND)
message("Doxygen need to be installed to generate the doxygen documentation")
ENDIF(DOXYGEN_FOUND)
# -- CTest
enable_testing()
Loading