mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-01-31 13:40:35 +00:00
fix build
This commit is contained in:
parent
42a6a2153a
commit
147dbb2aa1
2 changed files with 6 additions and 3 deletions
|
@ -3,7 +3,10 @@ macro ( ADD_FLUID_TEST _test )
|
|||
TARGET_LINK_LIBRARIES(${_test} libfluidsynth)
|
||||
|
||||
# use the local include path to look for fluidsynth.h, as we cannot be sure fluidsynth is already installed
|
||||
target_include_directories(${_test} PUBLIC $<BUILD_INTERFACE:${CMAKE_BINARY_DIR}/include>)
|
||||
target_include_directories(${_test}
|
||||
PUBLIC
|
||||
$<BUILD_INTERFACE:${CMAKE_BINARY_DIR}/include>
|
||||
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/include>)
|
||||
|
||||
ADD_TEST(NAME ${_test} COMMAND ${_test})
|
||||
endmacro ( ADD_FLUID_TEST )
|
||||
|
|
|
@ -5,8 +5,8 @@ ENABLE_TESTING()
|
|||
include ( FluidUnitTest )
|
||||
|
||||
|
||||
ADD_FLUID_TEST(test_sfont_cache)
|
||||
ADD_FLUID_TEST(test_sample_cache)
|
||||
|
||||
|
||||
# make test only runs tests, but doesnt build them
|
||||
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} DEPENDS test_sfont_cache)
|
||||
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} DEPENDS test_sample_cache)
|
||||
|
|
Loading…
Reference in a new issue