Fix sdl2 CMakeLists.txt on non-apple platforms
All checks were successful
Run tests / Run tests (push) Successful in 7m37s
All checks were successful
Run tests / Run tests (push) Successful in 7m37s
This commit is contained in:
parent
a0a1e18162
commit
0d54fa7f03
1 changed files with 14 additions and 9 deletions
|
|
@ -22,17 +22,22 @@ endif()
|
||||||
if(PSEMEK_GRAPHICS_API STREQUAL OPENGL)
|
if(PSEMEK_GRAPHICS_API STREQUAL OPENGL)
|
||||||
target_link_libraries(psemek-sdl2 PUBLIC psemek-gfx)
|
target_link_libraries(psemek-sdl2 PUBLIC psemek-gfx)
|
||||||
elseif(PSEMEK_GRAPHICS_API STREQUAL WEBGPU)
|
elseif(PSEMEK_GRAPHICS_API STREQUAL WEBGPU)
|
||||||
|
target_link_libraries(psemek-sdl2
|
||||||
|
PUBLIC
|
||||||
|
psemek-wgpu
|
||||||
|
)
|
||||||
|
|
||||||
|
if(APPLE)
|
||||||
# TODO: shouldn't these come from SDL2 dependencies?
|
# TODO: shouldn't these come from SDL2 dependencies?
|
||||||
find_library(FOUNDATION_FRAMEWORK Foundation REQUIRED)
|
find_library(FOUNDATION_FRAMEWORK Foundation REQUIRED)
|
||||||
find_library(METAL_FRAMEWORK Metal REQUIRED)
|
find_library(METAL_FRAMEWORK Metal REQUIRED)
|
||||||
find_library(QUARTZCORE_FRAMEWORK QuartzCore REQUIRED)
|
find_library(QUARTZCORE_FRAMEWORK QuartzCore REQUIRED)
|
||||||
|
|
||||||
target_link_libraries(psemek-sdl2
|
target_link_libraries(psemek-sdl2
|
||||||
PUBLIC
|
|
||||||
psemek-wgpu
|
|
||||||
PRIVATE
|
PRIVATE
|
||||||
${FOUNDATION_FRAMEWORK}
|
${FOUNDATION_FRAMEWORK}
|
||||||
${METAL_FRAMEWORK}
|
${METAL_FRAMEWORK}
|
||||||
${QUARTZCORE_FRAMEWORK}
|
${QUARTZCORE_FRAMEWORK}
|
||||||
)
|
)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue