File: sdl2_net-config.cmake

package info (click to toggle)
libsdl2-net 2.2.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,596 kB
  • sloc: sh: 10,749; ansic: 1,802; makefile: 79
file content (19 lines) | stat: -rw-r--r-- 756 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# SDL2_net CMake configuration file:
# This file is meant to be placed in a cmake subfolder of SDL2_net-devel-2.x.y-mingw

if(CMAKE_SIZEOF_VOID_P EQUAL 4)
    set(sdl2_net_config_path "${CMAKE_CURRENT_LIST_DIR}/../i686-w64-mingw32/lib/cmake/SDL2_net/sdl2_net-config.cmake")
elseif(CMAKE_SIZEOF_VOID_P EQUAL 8)
    set(sdl2_net_config_path "${CMAKE_CURRENT_LIST_DIR}/../x86_64-w64-mingw32/lib/cmake/SDL2_net/sdl2_net-config.cmake")
else("${CMAKE_SIZEOF_VOID_P}" STREQUAL "")
    set(SDL2_net_FOUND FALSE)
    return()
endif()

if(NOT EXISTS "${sdl2_net_config_path}")
    message(WARNING "${sdl2_net_config_path} does not exist: MinGW development package is corrupted")
    set(SDL2_net_FOUND FALSE)
    return()
endif()

include("${sdl2_net_config_path}")