I have a shared object called my-shared.so
I want to include it in my CMake build, without installing it, just linking the path. How can I do it?
I have a shared object called my-shared.so
I want to include it in my CMake build, without installing it, just linking the path. How can I do it?
In your CMakeLists.txt import library by:
add_library(myProjct SHARED IMPORTED)
set_target_properties(myProjct PROPERTIES
IMPORTED_LOCATION /some/path/mylib/my-shared.so
)