Hi all!
I’m writing a new SDL3 backend, and I’ve trouble understanding how the dependencies should be declared in the CMakeLists.txt file. All my dependencies ship pkg-config files, but I’m unable to have them fully working. What I do:
sdl_link_dependency(egc LIBS embedded-game-controller)
This works, but only adds -lembedded-game-controller to the link options, whereas I would also like it to:
- Add the
-Iflag with the include path; - Add
-lbt-embedded, since it’s a dependency (Requires:) declared inembedded-game-controller.pc
Both of these points are easy to address manually (the first one with sdl_include_directories(), the second with an additional call to sdl_link_dependency()), but it seems wrong, since it defeats the point of using pkg-config. Am I using this function in the wrong way?