replace SDL2_image with lodepng

This commit is contained in:
2024-04-13 15:08:47 +10:00
parent 6532465324
commit 59166d38a1
4 changed files with 9099 additions and 24 deletions

View File

@@ -2,11 +2,10 @@ cmake_minimum_required(VERSION "3.15" FATAL_ERROR)
project(endoomed LANGUAGES CXX)
find_package(SDL2 REQUIRED CONFIG)
find_package(SDL2_image REQUIRED CONFIG)
add_executable(endoomed src/main.cpp)
add_executable(endoomed src/lodepng.h src/lodepng.cpp src/main.cpp)
set_property(TARGET endoomed PROPERTY CXX_STANDARD 11)
target_link_libraries(endoomed SDL2::SDL2 SDL2_image::SDL2_image)
target_link_libraries(endoomed SDL2::SDL2)
if (TARGET SDL2::SDL_main)
target_link_libraries(endoomed SDL2::SDL_main)
endif()