What is the best way to deploy c++ applications that includes third party libs? I am trying to deploy a program to Windows and Linux with the libraries SDL2 and Boost. Should I be including the headers in an include directory in the project and the lib/DLL in a lib folder?
My goal is to be able to use CMake to generate project files to create executables and then be able to distribute those workable executables to audiences from those two platforms without any additional work from them.
Here is my current CMake build without the SDL2 dependency since I'm still trying to figure out how I should implement SDL2 distribution:
Removing the SDL header I can run the command: cmake . -DCMAKE_INSTALL_PREFIX=install/
at the root directory of the project which works on Linux but I am positive this will not generate a portable executable for running on Windows.
Any recommendations, links to resources, or advice on how to proceed would be greatly appreciated, thank you.