diff --git a/samples/cpp/CMakeLists.txt b/samples/cpp/CMakeLists.txt index 617629df2e..14ab6141df 100644 --- a/samples/cpp/CMakeLists.txt +++ b/samples/cpp/CMakeLists.txt @@ -14,6 +14,7 @@ set(OPENCV_CPP_SAMPLES_REQUIRED_DEPS opencv_features2d opencv_calib3d opencv_stitching + opencv_dnn ${OPENCV_MODULES_PUBLIC} ${OpenCV_LIB_COMPONENTS}) ocv_check_dependencies(${OPENCV_CPP_SAMPLES_REQUIRED_DEPS})