Linking a debian shared package library from an external location
I have a cmake project where I want to use the ALSA library, but I can't download the library directly so I have kept my ALSA library files in a folder /libraries/lib for so files and libraries/inc for header files.
In the CMakeLists file I added
include_directories(~/libraries/inc)
set(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} /usr/bin;~/libraries/inc)
While trying to link the libraries I get the error can't find -lasound.Someone told me to use LDLIBS and LDFLAGS but I don't know how to. How do I link my libraries properly?