Skip to content

Commit

Permalink
playwave: parse arguments using SDL_test instead of macros
Browse files Browse the repository at this point in the history
  • Loading branch information
madebr committed Sep 5, 2024
1 parent e3977d1 commit 851bd64
Show file tree
Hide file tree
Showing 2 changed files with 124 additions and 156 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1190,6 +1190,8 @@ if(SDLMIXER_INSTALL)
endif()

if(SDLMIXER_SAMPLES)
find_package(SDL3 REQUIRED COMPONENTS SDL3_test)

check_include_file("signal.h" HAVE_SIGNAL_H)
check_symbol_exists("setbuf" "stdio.h" HAVE_SETBUF)

Expand All @@ -1198,6 +1200,7 @@ if(SDLMIXER_SAMPLES)

foreach(prog playmus playwave)
sdl_add_warning_options(${prog} WARNING_AS_ERROR ${SDLMIXER_WERROR})
target_link_libraries(${prog} PRIVATE SDL3::SDL3_test)
target_link_libraries(${prog} PRIVATE SDL3_mixer::${sdl3_mixer_target_name})
target_link_libraries(${prog} PRIVATE ${sdl3_target_name})
if(HAVE_SIGNAL_H)
Expand Down
Loading

0 comments on commit 851bd64

Please sign in to comment.