Skip to content

fix: gate pybind11 examples and add_test behind build options - #93

Open
agirault wants to merge 1 commit into
nvidia-holoscan:release-2.6.0-EAfrom
agirault:fix/examples-gate-tests-and-python
Open

agirault wants to merge 1 commit into
nvidia-holoscan:release-2.6.0-EAfrom
agirault:fix/examples-gate-tests-and-python

Conversation

@agirault

@agirault agirault commented Mar 17, 2026

Copy link
Copy Markdown

Allows building examples without Python and without hardware-dependent tests

  • Move pybind11-dependent examples (linux_sub_frame_imx274_player, sub_frame_imx274_player) into if(HOLOLINK_BUILD_PYTHON) guards
  • Wrap all add_test() in if(HOLOLINK_BUILD_TESTS) so example binaries can be built without registering CTests (which require HSB hardware to pass)

…hind HOLOLINK_BUILD_TESTS

- Move include(hololink_deps/pybind11) and linux_sub_frame_imx274_player
  / sub_frame_imx274_player into if(HOLOLINK_BUILD_PYTHON) guards so
  examples build without Python when HOLOLINK_BUILD_PYTHON=OFF.
- Wrap all add_test()/set_tests_properties() in if(HOLOLINK_BUILD_TESTS)
  so example binaries can be built without registering CTests (which
  require HSB hardware to pass).

Signed-off-by: Alexis Girault <agirault@nvidia.com>
@agirault
agirault changed the base branch from main to release-2.6.0-EA March 17, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant