mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2025-01-19 06:30:53 +00:00
update sdl2 cmake files
This commit is contained in:
parent
f8935b4f1d
commit
a6cc8652ac
2 changed files with 10 additions and 10 deletions
|
@ -5,15 +5,15 @@
|
|||
# Commands may need to know the format version.
|
||||
set(CMAKE_IMPORT_FILE_VERSION 1)
|
||||
|
||||
# Import target "SDL2::SDL2-static" for configuration "Release"
|
||||
set_property(TARGET SDL2::SDL2-static APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
||||
set_target_properties(SDL2::SDL2-static PROPERTIES
|
||||
# Import target "SDL2::SDL2" for configuration "Release"
|
||||
set_property(TARGET SDL2::SDL2 APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
||||
set_target_properties(SDL2::SDL2 PROPERTIES
|
||||
IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "C"
|
||||
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/libSDL2.a"
|
||||
)
|
||||
|
||||
list(APPEND _IMPORT_CHECK_TARGETS SDL2::SDL2-static )
|
||||
list(APPEND _IMPORT_CHECK_FILES_FOR_SDL2::SDL2-static "${_IMPORT_PREFIX}/lib/libSDL2.a" )
|
||||
list(APPEND _IMPORT_CHECK_TARGETS SDL2::SDL2 )
|
||||
list(APPEND _IMPORT_CHECK_FILES_FOR_SDL2::SDL2 "${_IMPORT_PREFIX}/lib/libSDL2.a" )
|
||||
|
||||
# Import target "SDL2::SDL2main" for configuration "Release"
|
||||
set_property(TARGET SDL2::SDL2main APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
||||
|
|
10
deps/sdl2/lib/cmake/SDL2/SDL2Targets.cmake
vendored
10
deps/sdl2/lib/cmake/SDL2/SDL2Targets.cmake
vendored
|
@ -16,7 +16,7 @@ set(CMAKE_IMPORT_FILE_VERSION 1)
|
|||
set(_targetsDefined)
|
||||
set(_targetsNotDefined)
|
||||
set(_expectedTargets)
|
||||
foreach(_expectedTarget SDL2::SDL2-static SDL2::SDL2main)
|
||||
foreach(_expectedTarget SDL2::SDL2 SDL2::SDL2main)
|
||||
list(APPEND _expectedTargets ${_expectedTarget})
|
||||
if(NOT TARGET ${_expectedTarget})
|
||||
list(APPEND _targetsNotDefined ${_expectedTarget})
|
||||
|
@ -50,12 +50,12 @@ if(_IMPORT_PREFIX STREQUAL "/")
|
|||
set(_IMPORT_PREFIX "")
|
||||
endif()
|
||||
|
||||
# Create imported target SDL2::SDL2-static
|
||||
add_library(SDL2::SDL2-static STATIC IMPORTED)
|
||||
# Create imported target SDL2::SDL2
|
||||
add_library(SDL2::SDL2 STATIC IMPORTED)
|
||||
|
||||
set_target_properties(SDL2::SDL2-static PROPERTIES
|
||||
set_target_properties(SDL2::SDL2 PROPERTIES
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;${_IMPORT_PREFIX}/include/SDL2"
|
||||
INTERFACE_LINK_LIBRARIES -L${libdir} -lSDL2 -framework AudioToolbox -framework AVFoundation -framework Carbon -framework Cocoa -framework CoreAudio -framework CoreFoundation -framework CoreVideo -framework ForceFeedback -framework Foundation -framework IOKit
|
||||
INTERFACE_LINK_LIBRARIES "-framework AudioToolbox -framework AVFoundation -framework Carbon -framework Cocoa -framework CoreAudio -framework CoreFoundation -framework CoreVideo -framework ForceFeedback -framework Foundation -framework IOKit"
|
||||
)
|
||||
|
||||
# Create imported target SDL2::SDL2main
|
||||
|
|
Loading…
Reference in a new issue