From 85c1bab409332d7791195eea3036c73e06adee13 Mon Sep 17 00:00:00 2001 From: Slyvtt Date: Wed, 31 Aug 2022 10:29:38 +0200 Subject: [PATCH] added option to have all supported image formats --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c14a387..edb1d88 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,7 +33,7 @@ set(SOURCES # Target name is "cSDL_image", output file is "libcSDL_image.a" (by default) add_library(cSDL_image STATIC ${SOURCES}) -target_compile_options(cSDL_image PRIVATE -Os -std=c11) +target_compile_options(cSDL_image PRIVATE -Os -std=c11 -DLOAD_GIF -DLOAD_LBM -DLOAD_PCX -DLOAD_PNM -DLOAD_TGA -DLOAD_XCF -DLOAD_BMP -DLOAD_PNG) # After building, install the target (that is, cSDL_image.a) in the compiler install(TARGETS cSDL_image