I am using CMake with C++ and have a shared library in another project. I have added the lines to my CMake file:
find_library(lib1_location NAMES myLib)
message("myLib at: ${lib1_location}")
target_link_libraries(myProject ${lib1_location})
and it successfully finds the library.
In my C++ header file, I try to use it just with:
#include "myLib.h"
but it can't find it. What more do I need to do to use this shared library? Thanks for your patience.