From 6249be843b525035856595d408f868670525dbc3 Mon Sep 17 00:00:00 2001 From: Andy Vandijck Date: Sun, 2 Feb 2025 09:39:10 +0100 Subject: [PATCH] Add SDL3 to unit tests Add SDL3 to unit tests --- cmake_admin/FluidUnitTest.cmake | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cmake_admin/FluidUnitTest.cmake b/cmake_admin/FluidUnitTest.cmake index 0fc0286e5..e08541990 100644 --- a/cmake_admin/FluidUnitTest.cmake +++ b/cmake_admin/FluidUnitTest.cmake @@ -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