Skip to content

Commit

Permalink
Add SDL3 to unit tests
Browse files Browse the repository at this point in the history
Add SDL3 to unit tests
  • Loading branch information
andyvand committed Feb 2, 2025
1 parent 070458e commit 6249be8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmake_admin/FluidUnitTest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@ macro ( ADD_FLUID_TEST _test )
if ( FLUID_CPPFLAGS )
set_target_properties ( ${_test} PROPERTIES COMPILE_FLAGS ${FLUID_CPPFLAGS} )
endif ( FLUID_CPPFLAGS )
target_link_libraries( ${_test} libfluidsynth-OBJ )

if ( SDL3_SUPPORT )
target_link_libraries( ${_test} libfluidsynth-OBJ PUBLIC SDL3::SDL3 )
else ( SDL3_SUPPORT )
target_link_libraries( ${_test} libfluidsynth-OBJ )
endif ( SDL3_SUPPORT )
endif
# use the local include path to look for fluidsynth.h, as we cannot be sure fluidsynth is already installed
target_include_directories(${_test}
PUBLIC
Expand Down

0 comments on commit 6249be8

Please sign in to comment.