sdl2-config.cmake 668 B

12345678910111213141516171819
  1. # SDL2 CMake configuration file:
  2. # This file is meant to be placed in a cmake subfolder of SDL2-devel-2.x.y-mingw
  3. if(CMAKE_SIZEOF_VOID_P EQUAL 4)
  4. set(sdl2_config_path "${CMAKE_CURRENT_LIST_DIR}/../i686-w64-mingw32/lib/cmake/SDL2/sdl2-config.cmake")
  5. elseif(CMAKE_SIZEOF_VOID_P EQUAL 8)
  6. set(sdl2_config_path "${CMAKE_CURRENT_LIST_DIR}/../x86_64-w64-mingw32/lib/cmake/SDL2/sdl2-config.cmake")
  7. else()
  8. set(SDL2_FOUND FALSE)
  9. return()
  10. endif()
  11. if(NOT EXISTS "${sdl2_config_path}")
  12. message(WARNING "${sdl2_config_path} does not exist: MinGW development package is corrupted")
  13. set(SDL2_FOUND FALSE)
  14. return()
  15. endif()
  16. include("${sdl2_config_path}")