To avoid having to add the include_directories in my own CMakeLists, the best solution I found was adding the target_include_directories command in the CMakeLists that is located inside the libfvad/src, as you can see in this pull request.
It also works if I add it in the CMakeLists file in the root of the repository, however, it makes more sense to me to keep this command where the fvad library is created.
I can confirm it works on my project, and in the libfvad fork I made as well. Let me know if any extra test or steps are required.
Thank you!
I'm using
libfvad
withSDL
, and to have it working properly I had to add the followinginclude_directories
command in my project'sCMakeLists
file:To avoid having to add the
include_directories
in my ownCMakeLists
, the best solution I found was adding thetarget_include_directories
command in theCMakeLists
that is located inside thelibfvad/src
, as you can see in this pull request. It also works if I add it in theCMakeLists
file in the root of the repository, however, it makes more sense to me to keep this command where thefvad
library is created.I can confirm it works on my project, and in the libfvad fork I made as well. Let me know if any extra test or steps are required. Thank you!