I'm trying to build the example into a new VS project using the supplied CMake files and CMakeGUI. However, CMake is giving me trouble with SDL2. I have downloaded the SDL2 libs and include files, however I'm not sure where I need to put them so CMake can find them.
The error from CMake 3.11.0 is:
Code: Select all
CMake Error at CMakeLists.txt:49 (find_package): By not providing "FindSDL2.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "SDL2", but CMake did not find one. Could not find a package configuration file provided by "SDL2" with any of the following names: SDL2Config.cmake sdl2-config.cmake Add the installation prefix of "SDL2" to CMAKE_PREFIX_PATH or set "SDL2_DIR" to a directory containing one of the above files. If "SDL2" provides a separate development package or SDK, be sure it has been installed.