Commit 8b43d0cc authored by Erwan Demairy's avatar Erwan Demairy
Browse files

Generate all versions of the documentation.

parent 469279f0
Pipeline #112511 failed with stage
in 1 minute and 15 seconds
......@@ -9,8 +9,8 @@ pages:
- mkdir build
- cd build
- cmake ..
- make doc
- mv doxygen/out/html/ ../public/
- make doc-all
- mv doxygen/doc/ ../public/
artifacts:
paths:
- public
......
......@@ -17,17 +17,22 @@
## ###################################################################
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in
${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
IMMEDIATE
)
# For doc-all
#configure_file(
# ${CMAKE_CURRENT_SOURCE_DIR}/setvars.py
# ${CMAKE_CURRENT_BINARY_DIR}/setvars.py
# COPYONLY
#)
#configure_file(
# ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in
# ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile.in
# COPYONLY
#)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/setvars.py
${CMAKE_CURRENT_BINARY_DIR}/setvars.py
COPYONLY
)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in
${CMAKE_CURRENT_BINARY_DIR}/Doxyfile.in
COPYONLY
)
## ###################################################################
## Rules
......@@ -49,13 +54,13 @@ add_custom_command(
COMMENT "-- Generating documentation"
)
#add_custom_target("doc-all")
#add_custom_command(
# TARGET "doc-all" POST_BUILD
# COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/build_all_versions.sh
# WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
# COMMENT "-- Generating documentation for all versions"
#)
add_custom_target("doc-all")
add_custom_command(
TARGET "doc-all" POST_BUILD
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/build_all_versions.sh
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "-- Generating documentation for all versions"
)
######################################################################
### CMakeLists.txt ends here
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