Skip to content

Commit

Permalink
SDL: Remove FreeImage paths from CMakeLists
Browse files Browse the repository at this point in the history
We don't use FreeImage anymore, for both security and practicality
reasons since SDL already has methods to save screenshots.
  • Loading branch information
AShiningRay committed Sep 21, 2024
1 parent 1364f2d commit c7377c9
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/sdl2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c7377c9

Please sign in to comment.