How to use SDL2 functions in another DLL for main Executable?


I have two projects file. Main project is executable and using my dynamic library project. My DLL project have SDL2 and its working correct. My main project doesn’t have SDL2. It’s just have my DLL file. I tried to output from DLL with SDL2 and it’s working correct. But executable program giving error like “SDL.h no such file or directory”. Executable program trying to use DLL’s include. Why? I don’t want it. I just want to use SDL2 in my DLL and calling them from executable.

I create Window class in my DLL and its using SDL2 functions. Executable just loading my DLL and using Window class without SDL2 defines. How can i do this?