libsndfile support

This commit is contained in:
Cacodemon345
2024-07-05 16:28:01 +06:00
parent 74d1aa97c1
commit 138059ff45
2 changed files with 103 additions and 0 deletions

View File

@@ -13,4 +13,12 @@
# Copyright 2020-2021 David Hrdlička.
#
find_package(PkgConfig REQUIRED)
pkg_check_modules(SNDFILE REQUIRED IMPORTED_TARGET sndfile)
add_library(cdrom OBJECT cdrom.c cdrom_image_backend.c cdrom_image_viso.c cdrom_image.c cdrom_ioctl.c cdrom_mitsumi.c)
target_link_libraries(86Box PkgConfig::SNDFILE)
if (WIN32)
target_link_libraries(86Box -static ${SNDFILE_STATIC_LIBRARIES})
endif()