mirror of https://github.com/libsdl-org/SDL
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
668 B
CMake
20 lines
668 B
CMake
# SDL2 CMake configuration file:
|
|
# This file is meant to be placed in a cmake subfolder of SDL2-devel-2.x.y-mingw
|
|
|
|
if(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
|
set(sdl2_config_path "${CMAKE_CURRENT_LIST_DIR}/../i686-w64-mingw32/lib/cmake/SDL2/sdl2-config.cmake")
|
|
elseif(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
|
set(sdl2_config_path "${CMAKE_CURRENT_LIST_DIR}/../x86_64-w64-mingw32/lib/cmake/SDL2/sdl2-config.cmake")
|
|
else()
|
|
set(SDL2_FOUND FALSE)
|
|
return()
|
|
endif()
|
|
|
|
if(NOT EXISTS "${sdl2_config_path}")
|
|
message(WARNING "${sdl2_config_path} does not exist: MinGW development package is corrupted")
|
|
set(SDL2_FOUND FALSE)
|
|
return()
|
|
endif()
|
|
|
|
include("${sdl2_config_path}")
|