From 9d8213580b3807d89d0102c471590ba29512104b Mon Sep 17 00:00:00 2001 From: Slyvtt Date: Mon, 22 Aug 2022 20:58:28 +0200 Subject: [PATCH] now compatible with gint 2.9.0 --- CMakeLists.txt | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f7d5669..1beaa9e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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