Fix xsd generation in ddsconf
Signed-off-by: Jeroen Koekkoek <jeroen@koekkoek.nl>
This commit is contained in:
parent
93c75186f0
commit
f4e99f41f6
13 changed files with 132 additions and 101 deletions
|
@ -18,18 +18,14 @@ set(options_md "${CMAKE_CURRENT_BINARY_DIR}/manual/options.md")
|
|||
|
||||
if(BUILD_SCHEMA OR BUILD_DOCS)
|
||||
add_custom_command(
|
||||
OUTPUT "${cyclonedds_rnc}" "${cyclonedds_xsd}"
|
||||
OUTPUT "${cyclonedds_rnc}" "${cyclonedds_xsd}" "${options_md}"
|
||||
COMMAND ddsconf ARGS -f rnc -o "${cyclonedds_rnc}"
|
||||
COMMAND ddsconf ARGS -f xsd -o "${cyclonedds_xsd}"
|
||||
DEPENDS ddsconf)
|
||||
add_custom_target(schema DEPENDS "${cyclonedds_rnc}" "${cyclonedds_xsd}")
|
||||
|
||||
add_custom_command(
|
||||
OUTPUT "${options_md}"
|
||||
COMMAND ${CMAKE_COMMAND} -E make_directory manual
|
||||
COMMAND ddsconf ARGS -f md -o "${options_md}"
|
||||
DEPENDS ddsconf)
|
||||
add_custom_target(options_doc DEPENDS "${options_md}")
|
||||
add_custom_target(
|
||||
schema ALL DEPENDS "${cyclonedds_rnc}" "${cyclonedds_xsd}" "${options_md}")
|
||||
endif()
|
||||
|
||||
if(BUILD_DOCS)
|
||||
|
@ -39,7 +35,7 @@ if(BUILD_DOCS)
|
|||
BREATHE_PROJECTS ddsc_api_docs
|
||||
BUILDER html
|
||||
SOURCE_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/manual")
|
||||
add_dependencies(docs options_doc)
|
||||
add_dependencies(docs schema)
|
||||
|
||||
install(
|
||||
DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/docs"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue