diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-10-01 21:48:26 +0200 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-10-01 21:48:26 +0200 |
commit | 2add1f75012dd14efb4d69ce11566ef4477e74c2 (patch) | |
tree | 7bcc03beb259e1bfc9fbe9e586b6ab218379d286 /lib/sdl_image | |
parent | e0ea870fdfcfbe9e3f0e47215bb809d4353d88e2 (diff) |
need to switch submodule image to branch sdl2
Diffstat (limited to 'lib/sdl_image')
-rw-r--r-- | lib/sdl_image/CMakeLists.txt | 21 | ||||
m--------- | lib/sdl_image/src | 0 |
2 files changed, 21 insertions, 0 deletions
diff --git a/lib/sdl_image/CMakeLists.txt b/lib/sdl_image/CMakeLists.txt new file mode 100644 index 0000000..65f7598 --- /dev/null +++ b/lib/sdl_image/CMakeLists.txt @@ -0,0 +1,21 @@ +cmake_minimum_required(VERSION 3.28) + +set(CMAKE_C_STANDARD 11) +set(CMAKE_CXX_STANDARD 20) + +#add_compile_definitions(WITH_SDL2) +#add_subdirectory(../sdl2 sdl2) + +include_directories(src/include/SDL3_image) + +project(sdl_image C CXX) + +add_library(sdl_image SHARED + src/src/IMG.c + src/src/IMG_png.c +) +target_include_directories(sdl_image PRIVATE src/include/) +target_include_directories(sdl_image SYSTEM INTERFACE src/include/) + +target_link_libraries(sdl_image PRIVATE SDL2) + diff --git a/lib/sdl_image/src b/lib/sdl_image/src new file mode 160000 +Subproject 6f4584340b9b78542d11bf0232a1a0862de1f0a |