diff --git a/Examples/CMakeLists.txt b/Examples/CMakeLists.txt index 04a7b799609ff8cb54fc71f855b71f653b217225..639761a6c6e94b30538e8febb535134ca33c6b1a 100644 --- a/Examples/CMakeLists.txt +++ b/Examples/CMakeLists.txt @@ -100,6 +100,11 @@ else() message(FATAL_ERROR "BUILD_EXAMPLES requires ${_activationOption} to be ON") endif() endforeach() + + find_package(OTB REQUIRED) + include(${OTB_USE_FILE}) + message(STATUS "Found OTB: ${OTB_USE_FILE}") + endif() set(OTB_TEST_DRIVER otbTestDriver)