added option to have all supported image formats

This commit is contained in:
Sylvain PILLOT 2022-08-31 10:29:38 +02:00
parent c5b048c7d2
commit 85c1bab409
1 changed files with 1 additions and 1 deletions

View File

@ -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