Page 1 of 1

Building Example from Code with CMakeGUI

Posted: Thu Apr 12, 2018 5:52 pm
by Athlete
Hi there,

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.

Please advise.

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.
Thanks!

Re: Building Example from Code with CMakeGUI

Posted: Sat Sep 12, 2020 7:19 am
by Steefen Robit
My Online Shop kfirtager On So You Can Buy This Wall Art To Follow May Shop Link FRUIT NINJA GANG Art And Buy This Product Amazing Products On My Shop. Tropical Wall Art, Graffiti Wall Hanging, Modern Wall D├ęcor, Large Pop Art, Restaurant Decor, Original Painting Office Artwork, Graffiti Art Original