CMakeLists pkg-config opencv C++
I made program with "opencv2/nonfree/features2d.hpp" like this include.
#include "opencv2/nonfree/features2d.hpp"
When I compile the program, I need some option like this.
g++ filename.cpp `pkg-config opencv --cflags --libs`
These are no error. But I don't know how to write this on CMakeLists.
When I do catkin_make, these are same error that I compiled without option.
Please tell me.
Thanks.