Link render with sndfile

This commit is contained in:
Jean Pierre Cimalando 2020-05-03 07:58:00 +02:00
parent 1e43989919
commit 28afd9937b

View file

@ -18,7 +18,7 @@ if (SFIZZ_RENDER)
target_compile_definitions(sfizz-fmidi PUBLIC "FMIDI_STATIC=1" "FMIDI_DISABLE_DESCRIBE_API=1")
add_executable(sfizz_render sfizz_render.cpp)
target_link_libraries(sfizz_render sfizz::sfizz sfizz-fmidi)
target_link_libraries(sfizz_render PRIVATE sfizz::sfizz sfizz-fmidi sfizz-sndfile)
sfizz_enable_lto_if_needed (sfizz_render)
install (TARGETS sfizz_render DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT "render" OPTIONAL)
endif()