Allow sfizz library targets to expose st_audiofile publicly
This fixes the problems with programs which link sfizz internal API: the tests, benchmarks, demos. The MSVC comfiguration would fail to fail "sndfile.h" while building the tests.
This commit is contained in:
parent
d5f49595d3
commit
65ca3adf65
1 changed files with 2 additions and 0 deletions
|
|
@ -224,6 +224,7 @@ target_link_libraries (sfizz_static PRIVATE sfizz_parser absl::flat_hash_map Thr
|
|||
set_target_properties (sfizz_static PROPERTIES OUTPUT_NAME sfizz PUBLIC_HEADER "sfizz.h;sfizz.hpp")
|
||||
if(SFIZZ_USE_SNDFILE)
|
||||
target_compile_definitions (sfizz_static PUBLIC SFIZZ_USE_SNDFILE=1)
|
||||
target_link_libraries (sfizz_static PUBLIC st_audiofile)
|
||||
endif()
|
||||
if (WIN32)
|
||||
target_compile_definitions (sfizz_static PRIVATE _USE_MATH_DEFINES)
|
||||
|
|
@ -253,6 +254,7 @@ if (SFIZZ_SHARED)
|
|||
target_link_libraries (sfizz_shared PRIVATE absl::strings absl::span sfizz_parser absl::flat_hash_map Threads::Threads st_audiofile sfizz-pugixml sfizz-spline sfizz-tunings sfizz-kissfft sfizz-cpuid sfizz-jsl sfizz-atomic)
|
||||
if(SFIZZ_USE_SNDFILE)
|
||||
target_compile_definitions (sfizz_shared PUBLIC SFIZZ_USE_SNDFILE=1)
|
||||
target_link_libraries (sfizz_shared PUBLIC st_audiofile)
|
||||
endif()
|
||||
if (WIN32)
|
||||
target_compile_definitions (sfizz_shared PRIVATE _USE_MATH_DEFINES)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue