I've tried running the examples for windows, which work great. I'd like to build a new VS project using the supplied CMake files in the "Square Tracking example" now. However, CMake is giving me trouble as it cannot find the SDL2 directory. What are the correct following steps now?
Where should I put the SDL2 files (I only have include + binaries, but no cmake files for it)? Do I need to set a new environment variable?
The error message of 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.
Athlete