Reputation: 2474
I just installed OpenCV and PCL Libararies on my system (ubuntu 16.04). In my C++ project's CMakeLists.txt I have following commands:
find_package(PCL Required)
find_package(OpenCV Required)
I know, find_package is in Module mode. Though, in default Cmake 3.10 does not come with FindOpenCV.cmake neither FindPCL.cmake e.g. there is no similar files in
/usr/share/cmake/Modules
neither in
/usr/local/share/cmake/Modules
Why Cmake is not giving error ? I tried to find these files by find command in root directory but could not find anywhere.
Upvotes: 0
Views: 498
Reputation: 564
There are file FindOpenCV.cmake
(Module mode) or OpenCVConfig.cmake
(Config Mode) in you file system.
You can find then by cmd: sudo find / -iname "*opencv*.cmake"
Upvotes: 1