I have developed a C++ application that relies on external library dependencies, primarily SDL.
Would like to store the library and DLL files together in a different folders than the .vcxproj
file.
Question 1: How to make Visual Studio "find" those DLLs in the folders?
Question 2: When building I want to store in the same folder structure, how is that achievable/is it achievable?
Example:
Project_folder/SDL/SDL_2/lib/x86
-> here are the SDL 2 DLLs.
Project_folder/SDL/SDL2_image/lib/x86
-> more DLLs.
Notice that there are two different folders that I need Visual Studio to "get" the DLLs.
What I have tried:
About Question 1: How do I set the path to a DLL file in Visual Studio? That does not appear to work for me or at least I could not make it work for me. It does however do the job if I store all the DLLs in the specified folder.
About Question 2: Documentation about post-build events This seems to do part of the job. I can now copy the DLLs to a different folder, but the application won't be able to load them as they need to live where the executable is.