Skip to content

Commit

Permalink
Make sure that SWIG targets exist before generating the website
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoferigo committed May 9, 2021
1 parent 1d1317d commit 4a0828c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/sphinx/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ set(BINDINGS_MODULES_DIR "${PROJECT_BINARY_DIR}/bindings")
# - docs/sphinx/gym_ignition
# - docs/sphinx/gym_ignition_environments

if (NOT TARGET ScenarioSwig::Core)
message(FATAL_ERROR "Target ScenarioSwig::Core not found")
endif()

if (NOT TARGET ScenarioSwig::Gazebo)
message(FATAL_ERROR "Target ScenarioSwig::Gazebo not found")
endif()

find_package(SphinxApidoc REQUIRED)
add_custom_target(apidoc ALL DEPENDS
doxygen ScenarioSwig::Core ScenarioSwig::Gazebo)
Expand Down

0 comments on commit 4a0828c

Please sign in to comment.