0
안녕하세요 저는 이미지 파일을 여는 기본 프로그램을 작성했습니다. 내가 그것을 컴파일하는 CMake를 사용하려고합니다. Thsi는 내 CMake 파일의 모습입니다.CMake를 사용하여 OpenCV-2.4.3에서 컴파일하기
cmake_minimum_required(VERSION 2.6)
project(textures)
find_package(OpenCV REQUIRED)
add_executable(textures textures.cpp)
target_link_libraries(textures ${OpenCV_LIBS})
"cmake."를 실행하면 다음 오류가 발생합니다.
CMake Error at CMakeLists.txt:3 (find_package):
By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "OpenCV", but
CMake did not find one.
Could not find a package configuration file provided by "OpenCV" with any
of the following names:
OpenCVConfig.cmake
opencv-config.cmake
Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set
"OpenCV_DIR" to a directory containing one of the above files. If "OpenCV"
provides a separate development package or SDK, be sure it has been
installed.
-- Configuring incomplete, errors occurred!
어떤 의미인지, 어떻게 해결할 수 있습니까? 감사.