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
This commit is contained in:
Igor Murzov 2020-02-06 18:04:09 +03:00
parent 6d75be03f9
commit 981e63d8c2

View File

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