File: CommonFindSDL2.cmake

package info (click to toggle)
libsdl2-ttf 2.24.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 760 kB
  • sloc: ansic: 4,278; python: 1,280; makefile: 220; sh: 190
file content (22 lines) | stat: -rw-r--r-- 654 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Common variables for FindSDL2*.cmake modules

set(_inc_suffixes include)
set(_lib_suffixes)
if(MSVC)
    if(CMAKE_SIZEOF_VOID_P EQUAL 4)
        list(APPEND _lib_suffixes "lib/x86")
    endif()
    if(CMAKE_SIZEOF_VOID_P EQUAL 8)
        list(APPEND _lib_suffixes "lib/x64")
    endif()
endif()
if(MINGW)
    if(CMAKE_SIZEOF_VOID_P EQUAL 4)
        list(APPEND _lib_suffixes "i686-w64-mingw32/lib")
        list(APPEND _inc_suffixes "i686-w64-mingw32/include")
    endif()
    if(CMAKE_SIZEOF_VOID_P EQUAL 8)
        list(APPEND _lib_suffixes "x86_46-w64-mingw32/lib")
        list(APPEND _inc_suffixes "x86_46-w64-mingw32/include")
    endif()
endif()