Fix and simplify building docs and schemas (#441)
Fix and simplify building docs and schemas 1. Do an in-source build of derived schemas instead of building into build and checking that the files match. 2. Fix paths of installed docs, which were failing on me 3. Consolidate docs into same cmakelists that generates schema files 4. Trang is usually available as an executable, so find it with find_program. 5. Add doc dependencies to package.xml Signed-off-by: Dan Rose <dan@digilabs.io>
This commit is contained in:
parent
9207ad0cf3
commit
17da91409a
7 changed files with 118 additions and 71 deletions
|
@ -205,6 +205,9 @@ set(MEMORYCHECK_COMMAND_OPTIONS "--track-origins=yes --leak-check=full --trace-c
|
|||
option(BUILD_TESTING "Build the testing tree." OFF)
|
||||
include(CTest)
|
||||
|
||||
option(BUILD_DOCS "Build documentation." OFF)
|
||||
option(BUILD_SCHEMA "Build generated schema for configuration options." OFF)
|
||||
|
||||
# Build all executables and libraries into the top-level /bin and /lib folders.
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
|
||||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
|
||||
|
@ -215,7 +218,7 @@ if(BUILD_IDLC)
|
|||
add_subdirectory(examples)
|
||||
endif()
|
||||
|
||||
option(BUILD_DOCS "Build documentation." OFF)
|
||||
|
||||
add_subdirectory(docs)
|
||||
|
||||
# Pull-in CPack and support for generating <Package>Config.cmake and packages.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue