mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-02-22 03:41:16 +00:00
only build unit test if explicitly requested
via make check
This commit is contained in:
parent
521e5451fc
commit
283eba5a3c
1 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,10 @@
|
|||
macro ( ADD_FLUID_TEST _test )
|
||||
ADD_EXECUTABLE(${_test} ${_test}.c $<TARGET_OBJECTS:libfluidsynth-OBJ> )
|
||||
TARGET_LINK_LIBRARIES(${_test} libfluidsynth)
|
||||
|
||||
# only build this unit test when explicitly requested by "make check"
|
||||
set_target_properties(${_test} PROPERTIES EXCLUDE_FROM_ALL TRUE)
|
||||
|
||||
TARGET_LINK_LIBRARIES(${_test} $<TARGET_PROPERTY:libfluidsynth,INTERFACE_LINK_LIBRARIES>)
|
||||
|
||||
# use the local include path to look for fluidsynth.h, as we cannot be sure fluidsynth is already installed
|
||||
target_include_directories(${_test}
|
||||
|
|
Loading…
Reference in a new issue