Simple Directmedia Layer
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 38 lines 1.7 kB view raw
1# @<@PROJECT_NAME@>@ CMake version configuration file: 2# This file is meant to be placed in a lib/cmake/@<@PROJECT_NAME@>@ subfolder of a reconstructed Android SDL3 SDK 3 4set(PACKAGE_VERSION "@<@PROJECT_VERSION@>@") 5 6if(PACKAGE_FIND_VERSION_RANGE) 7 # Package version must be in the requested version range 8 if ((PACKAGE_FIND_VERSION_RANGE_MIN STREQUAL "INCLUDE" AND PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION_MIN) 9 OR ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND PACKAGE_VERSION VERSION_GREATER PACKAGE_FIND_VERSION_MAX) 10 OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND PACKAGE_VERSION VERSION_GREATER_EQUAL PACKAGE_FIND_VERSION_MAX))) 11 set(PACKAGE_VERSION_COMPATIBLE FALSE) 12 else() 13 set(PACKAGE_VERSION_COMPATIBLE TRUE) 14 endif() 15else() 16 if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION) 17 set(PACKAGE_VERSION_COMPATIBLE FALSE) 18 else() 19 set(PACKAGE_VERSION_COMPATIBLE TRUE) 20 if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION) 21 set(PACKAGE_VERSION_EXACT TRUE) 22 endif() 23 endif() 24endif() 25 26# if the using project doesn't have CMAKE_SIZEOF_VOID_P set, fail. 27if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "") 28 set(PACKAGE_VERSION_UNSUITABLE TRUE) 29endif() 30 31include("${CMAKE_CURRENT_LIST_DIR}/sdlcpu.cmake") 32SDL_DetectTargetCPUArchitectures(_detected_archs) 33 34# check that the installed version has a compatible architecture as the one which is currently searching: 35if(NOT(SDL_CPU_X86 OR SDL_CPU_X64 OR SDL_CPU_ARM32 OR SDL_CPU_ARM64)) 36 set(PACKAGE_VERSION "${PACKAGE_VERSION} (X86,X64,ARM32,ARM64)") 37 set(PACKAGE_VERSION_UNSUITABLE TRUE) 38endif()