now compatible with gint 2.9.0

This commit is contained in:
Sylvain PILLOT 2022-08-22 20:58:28 +02:00
parent 5a848275de
commit 9d8213580b
1 changed files with 5 additions and 6 deletions

View File

@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.16)
project(LibSDL_image VERSION 1.2.12 LANGUAGES C)
# Libraries that libexample depends on
find_package(Gint 2.7.1 REQUIRED)
find_package(Gint 2.9.0 REQUIRED)
set(SOURCES
@ -26,8 +26,7 @@ set(SOURCES
include_directories(
"${PROJECT_SOURCE_DIR}"
"${FXSDK_COMPILER_INSTALL}/include"
"${FXSDK_COMPILER_INSTALL}/include/openlibm")
"${FXSDK_INCLUDE}")
add_compile_options(-Os -lm -m4-nofpu -mb -std=c11 -ffreestanding -nostdlib -Wa,--dsp -lcPNG -lczlib -lSDL_prizm -DLOAD_GIF -DLOAD_LBM -DLOAD_PCX -DLOAD_PNM -DLOAD_TGA -DLOAD_XCF -DLOAD_BMP -DLOAD_PNG)
# Target name is "SDL_image_prizm", output file is "libSDL_image_prizm.a" (by default)
@ -35,11 +34,11 @@ add_library(SDL_image_prizm STATIC ${SOURCES})
# After building, install the target (that is, SDL_image_prizm.a) in the compiler
install(TARGETS SDL_image_prizm
DESTINATION "${FXSDK_COMPILER_INSTALL}")
DESTINATION "${FXSDK_LIB}")
# Install zlib.h from the build dir
# Install SDL_image.h from the build dir
install(FILES "${PROJECT_SOURCE_DIR}/SDL/SDL_image.h"
DESTINATION "${FXSDK_COMPILER_INSTALL}/include")
DESTINATION "${FXSDK_INCLUDE}/SDL")
# Install FindSDL_prizm.cmake so that users can do find_package(LibSDL_prizm)
install(FILES cmake/FindcSDL_image_prizm.cmake