diff options
author | jaroWMR <jarorutjes07@gmail.com> | 2024-10-23 19:57:44 +0200 |
---|---|---|
committer | jaroWMR <jarorutjes07@gmail.com> | 2024-10-23 19:57:44 +0200 |
commit | edbb6c892299e3b7f93638abcc9e55b2cfce2358 (patch) | |
tree | d9c306af19636f5c757397ec1c1a157a93c12f0c /lib/sdl_image | |
parent | 1b96c6e3c57b9d1dc5fb02cbd24b625d7f7f5b05 (diff) | |
parent | eaa05e7a981b0f581f5393882e4753d9294a3dba (diff) |
merge with niels/rendering
Diffstat (limited to 'lib/sdl_image')
-rw-r--r-- | lib/sdl_image/CMakeLists.txt | 51 | ||||
m--------- | lib/sdl_image/src | 0 |
2 files changed, 51 insertions, 0 deletions
diff --git a/lib/sdl_image/CMakeLists.txt b/lib/sdl_image/CMakeLists.txt new file mode 100644 index 0000000..d1bee81 --- /dev/null +++ b/lib/sdl_image/CMakeLists.txt @@ -0,0 +1,51 @@ +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_WIC.c + src/src/IMG_avif.c + src/src/IMG_bmp.c + src/src/IMG_gif.c + src/src/IMG_jpg.c + src/src/IMG_jxl.c + src/src/IMG_lbm.c + src/src/IMG_pcx.c + src/src/IMG_png.c + src/src/IMG_pnm.c + src/src/IMG_qoi.c + src/src/IMG_stb.c + src/src/IMG_svg.c + src/src/IMG_tga.c + src/src/IMG_tif.c + src/src/IMG_webp.c + src/src/IMG_xcf.c + src/src/IMG_xpm.c + src/src/IMG_xv.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 c6c7278b86b5de1232b10de8f612ed05cf2d11f |