For example if I use a function in opencv, and I can use two methods to specify the libs and link them.
First one, I can use find_package(OpenCV 3.3 REQUIRED)
and them target_link_libraries( main ${OpenCV_LIBS})
because the macro include all the libraries we need.
Second one, I want to link my opencv without ".cmake" and I need to give CMakeLists.txt a link_directiories(/xxxx)
and use target_link_libraries(main opencv_core opencv_imgcodecs)
.
So my question is how can I quickly find out which lib I should link while I use the second method. Like I use some function in the opencv_core.so but actually I know it by try several times among much libs in opencv.