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 May 15, 2024
1 parent dd8fd85 commit 6874c74
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(SDL3MIXER_INSTALL)
endif()

if(SDL3MIXER_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(SDL3MIXER_SAMPLES)

foreach(prog playmus playwave)
sdl_add_warning_options(${prog} WARNING_AS_ERROR ${SDL3MIXER_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 6874c74

Please sign in to comment.