Skip to content

Commit 6440086

Browse files
author
ohsix
committed
wire up sdl_image in the build stuff
1 parent a88e871 commit 6440086

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

StepmaniaCore.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,10 @@ endif()
258258

259259
if(WITH_SDL)
260260
find_package(SDL2 REQUIRED)
261+
find_package(PkgConfig REQUIRED)
262+
263+
#IMG_SaveJPG was added in 2.0.2, SavePNG was added 2.0.0
264+
pkg_check_modules(SDL2_image REQUIRED SDL2_image>=2.0.2)
261265
set(HAS_SDL TRUE)
262266
endif()
263267

src/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,9 @@ else() # Unix / Linux TODO: Remember to find and locate the zip archive files.
626626

627627
if(SDL2_FOUND)
628628
list(APPEND SMDATA_LINK_LIB ${SDL2_LIBRARIES})
629+
list(APPEND SMDATA_LINK_LIB ${SDL2_image_LIBRARIES})
630+
list(APPEND SM_INCLUDE_DIRS ${SDL2_INCLUDE_DIRS})
631+
list(APPEND SM_INCLUDE_DIRS ${SDL2_image_INCLUDE_DIRS})
629632
sm_add_compile_definition("${SM_EXE_NAME}" HAVE_SDL)
630633
endif()
631634

0 commit comments

Comments
 (0)