Debian Codegraph @

mingw/pkg-support/cmake/sdl3_mixer-config.cmake

raw
1 # SDL3_mixer CMake configuration file:
2 # This file is meant to be placed in a cmake subfolder of SDL3_mixer-devel-3.x.y-mingw
3
4 if(CMAKE_SIZEOF_VOID_P EQUAL 4)
5 set(sdl3_mixer_config_path "${CMAKE_CURRENT_LIST_DIR}/../i686-w64-mingw32/lib/cmake/SDL3_mixer/SDL3Config.cmake")
6 elseif(CMAKE_SIZEOF_VOID_P EQUAL 8)
7 set(sdl3_mixer_config_path "${CMAKE_CURRENT_LIST_DIR}/../x86_64-w64-mingw32/lib/cmake/SDL3_mixer/SDL3Config.cmake")
8 else("${CMAKE_SIZEOF_VOID_P}" STREQUAL "")
9 set(SDL3_mixer_FOUND FALSE)
10 return()
11 endif()
12
13 if(NOT EXISTS "${sdl3_mixer_config_path}")
14 message(WARNING "${sdl3_mixer_config_path} does not exist: MinGW development package is corrupted")
15 set(SDL3_mixer_FOUND FALSE)
16 return()
17 endif()
18
19 include("${sdl3_mixer_config_path}")
20
21 # The SDL_mixer MinGW development package ships with vendored libraries
22 set(SDLMIXER_VENDORED 1)