use stb_image.h instead of SDL2_image

This commit is contained in:
2024-08-27 14:45:26 +03:00
parent e1cba136a3
commit 1952ab60ff
3 changed files with 60 additions and 20 deletions

View File

@ -4,7 +4,6 @@ project(townengine LANGUAGES C)
# SDL dependencies
find_package(SDL2 REQUIRED GLOBAL)
find_package(SDL2_image REQUIRED GLOBAL)
# CMake actually has no default configuration and it's toolchain file dependent, set debug if not specified
if(NOT CMAKE_BUILD_TYPE)
@ -164,6 +163,7 @@ function(give_options target)
-Wconversion -Wno-sign-conversion
-Werror=vla
-Wno-missing-field-initializers
-Wunused-result
$<$<STREQUAL:${CMAKE_C_COMPILER_ID},Gnu>:-Wcast-align=strict>)
target_compile_options(${target} PRIVATE
@ -194,7 +194,6 @@ endfunction()
function(link_deps target)
target_link_libraries(${target} PUBLIC
SDL2::SDL2
SDL2_image::SDL2_image
physfs-static
xms)
endfunction()