Hi all,
i am trying to include OpenCV 2.0 (which is using CMake now) in our project.
Therefore, I call FIND_PACKAGE(OpenCV 2 REQUIRED) in one of our CMake files
with the following result:
CMake Error at mitk/CMake/MITK_OpenCV_Config.cmake:2 (FIND_PACKAGE):
Could not find module FindOpenCV.cmake or a configuration file for package
OpenCV.
Adjust CMAKE_MODULE_PATH to find FindOpenCV.cmake or set OpenCV_DIR to the
directory containing a CMake configuration file for OpenCV. The file will
have one of the following names:
OpenCVConfig.cmake
opencv-config.cmake
...
The file OpenCVConfig.cmake exists and I provide an ENV variable OpenCV_DIR
pointing to the correct dir which CMake should find. However, even if I set
OpenCV_DIR manually in the cache, CMake keeps failing.
Any ideas?
Greets
Michael
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake