I installed ROS in my computer. And ROS automatically installed opencv 3.2 in my computer. As I need to use functions in opencv's extra modules, I installed opencv again from source.
Now I have a c++ project and I want to use the opencv I installed from source instead of the one that comes with ROS. As both are 3.2 version, I don't know how to select which opencv to use in CMakeLists.txt.