fix build

This commit is contained in:
derselbst 2018-04-06 22:36:23 +02:00
parent 42a6a2153a
commit 147dbb2aa1
2 changed files with 6 additions and 3 deletions

View file

@ -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 )

View file

@ -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)