Install all CMake files required to build samples

CMakeLists.txt includes samples_utils.cmake, so the later should be
installed as well to make samples build successfully
pull/16520/head
Igor Murzov 5 years ago
parent 6d75be03f9
commit 981e63d8c2
  1. 2
      samples/CMakeLists.txt

@ -45,7 +45,7 @@ if(INSTALL_PYTHON_EXAMPLES)
add_subdirectory(python) add_subdirectory(python)
endif() endif()
ocv_install_example_src("." CMakeLists.txt) ocv_install_example_src("." CMakeLists.txt samples_utils.cmake)
if(INSTALL_C_EXAMPLES) if(INSTALL_C_EXAMPLES)
install(DIRECTORY data DESTINATION "${OPENCV_SAMPLES_SRC_INSTALL_PATH}" COMPONENT samples_data) install(DIRECTORY data DESTINATION "${OPENCV_SAMPLES_SRC_INSTALL_PATH}" COMPONENT samples_data)
endif() endif()

Loading…
Cancel
Save