From 22a7ae0d8eac2a86cc6e4ca67e2db30990e8c4b9 Mon Sep 17 00:00:00 2001 From: rude Date: Wed, 11 Dec 2013 21:48:21 +0100 Subject: [PATCH] Add CMakeLists.txt for SDL2_image. --- libs/SDL2_image-2.0.0/CMakeLists.txt | 45 ++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 libs/SDL2_image-2.0.0/CMakeLists.txt diff --git a/libs/SDL2_image-2.0.0/CMakeLists.txt b/libs/SDL2_image-2.0.0/CMakeLists.txt new file mode 100644 index 00000000..81366fbd --- /dev/null +++ b/libs/SDL2_image-2.0.0/CMakeLists.txt @@ -0,0 +1,45 @@ +cmake_minimum_required(VERSION 2.8) + +project(SDL2_image) + +set(SDL2_IMAGE_SRC + IMG.c + IMG_bmp.c + IMG_gif.c + IMG_jpg.c + IMG_lbm.c + IMG_pcx.c + IMG_png.c + IMG_pnm.c + IMG_tga.c + IMG_tif.c + #IMG_webp.c + IMG_xcf.c + IMG_xpm.c + IMG_xv.c + IMG_xxx.c +) + +add_definitions( + -DLOAD_BMP + -DLOAD_GIF + -DLOAD_JPG + -DLOAD_LBM + -DLOAD_PCX + -DLOAD_PNG + -DLOAD_PNM + -DLOAD_TGA + -DLOAD_TIF + #-DLOAD_WEBP + -DLOAD_XPM + -DLOAD_XV +) + +add_library(SDL2_image-static STATIC ${SDL2_IMAGE_SRC}) +target_include_directories(SDL2_image-static PUBLIC .) +target_link_libraries(SDL2_image-static + ${MEGA_SDL2} + ${MEGA_LIBPNG} + ${MEGA_TIFF} + ${MEGA_JPEG} +)