From c7377c989c3bac121e2d67a195d64f508724afed Mon Sep 17 00:00:00 2001 From: AShiningRay Date: Sat, 21 Sep 2024 14:24:06 -0300 Subject: [PATCH] SDL: Remove FreeImage paths from CMakeLists We don't use FreeImage anymore, for both security and practicality reasons since SDL already has methods to save screenshots. --- src/sdl2/CMakeLists.txt | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/sdl2/CMakeLists.txt b/src/sdl2/CMakeLists.txt index 9df89a69..28e09292 100644 --- a/src/sdl2/CMakeLists.txt +++ b/src/sdl2/CMakeLists.txt @@ -5,18 +5,8 @@ project(sdl_interface CXX) find_package(SDL2 REQUIRED CONFIG REQUIRED COMPONENTS SDL2) find_package(SDL2 REQUIRED CONFIG COMPONENTS SDL2main) -include_directories(${SDL2_INCLUDE_DIRS}) - -find_path(FreeImage_INCLUDE_DIR FreeImage.h HINTS ${FREEIMAGE_DIR}) -find_library(FreeImage_LIBRARY NAMES FreeImage HINTS ${FREEIMAGE_DIR}) - -include_directories(${FreeImage_INCLUDE_DIR}) - add_executable(sdl_interface anbu.cpp) -target_link_libraries(sdl_interface ${SDL2_LIBRARIES}) -target_link_libraries(sdl_interface ${FreeImage_LIBRARY}) - install( TARGETS sdl_interface RUNTIME DESTINATION bin