2024-10-24 11:33:08 -07:00
|
|
|
set(BACKEND_FLUIDSYNTH_SRC ${CMAKE_CURRENT_SOURCE_DIR}/fluidsynth_backend.cpp)
|
|
|
|
set(BACKEND_FLUIDSYNTH_INC ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
add_playback_backend(fluidsynth_backend ${BACKEND_FLUIDSYNTH_SRC})
|
|
|
|
target_include_directories(fluidsynth_backend PRIVATE ${BACKEND_FLUIDSYNTH_INC})
|
|
|
|
find_package(OpenMP)
|
2024-12-11 16:33:27 -08:00
|
|
|
find_package(PkgConfig)
|
|
|
|
pkg_check_modules(fluidsynth fluidsynth IMPORTED_TARGET)
|
|
|
|
|
|
|
|
target_link_libraries(fluidsynth_backend PUBLIC OpenMP::OpenMP_CXX PkgConfig::fluidsynth)
|