I couldn't really find anything on Google or SO about this. I don't know if it's because it's uncommon, or because I am using the wrong terms to search. I read this question here, but it didn't really answer my question.
So what I am doing is trying to build a library on top of SDL for C++. Now what I can't seem to figure out is how to make projects that use my library be totally independent from SDLs files except the dll
.
When I make my library, I link with SDL2.lib
, and SDL2main.lib
. I include all of SDLs header files into my libraries files. When I build, it generates my library file; GGL.lib
.
But when I want to test my library in another project, I have to include all of SDLs header files, because in my project's Window.h
, it includes SDL.h
. I am wondering if there is any way for me to make my libraries header files independent from SDL except for the dll
.