Audio Abstrakcija - WIP
This commit is contained in:
@@ -28,6 +28,13 @@ FetchContent_Declare(
|
||||
GIT_TAG release-3.2.2
|
||||
)
|
||||
|
||||
# Download SDL3_mixer from source
|
||||
FetchContent_Declare(
|
||||
SDL3_mixer
|
||||
GIT_REPOSITORY https://github.com/libsdl-org/SDL_mixer.git
|
||||
GIT_TAG release-3.2.0
|
||||
)
|
||||
|
||||
# Work around PipeWire API mismatch on some Linux distributions.
|
||||
# Disable PipeWire backend in SDL; PulseAudio/ALSA backends remain available.
|
||||
set(SDL_PIPEWIRE OFF CACHE BOOL "Disable SDL PipeWire backend" FORCE)
|
||||
@@ -37,6 +44,7 @@ set(SDL_PIPEWIRE_SHARED OFF CACHE BOOL "Disable dynamic PipeWire loading in SDL"
|
||||
FetchContent_MakeAvailable(SDL3)
|
||||
FetchContent_MakeAvailable(SDL3_image)
|
||||
FetchContent_MakeAvailable(SDL3_ttf)
|
||||
FetchContent_MakeAvailable(SDL3_mixer)
|
||||
|
||||
# Collect all source files from src/ and nested directories
|
||||
file(GLOB_RECURSE SOURCES CONFIGURE_DEPENDS "src/*.cpp")
|
||||
@@ -51,4 +59,4 @@ add_executable(${PROJECT_NAME} ${SOURCES})
|
||||
target_include_directories(${PROJECT_NAME} PRIVATE include)
|
||||
|
||||
# Link SDL3 and SDL3_image to the executable
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE SDL3::SDL3 SDL3_image::SDL3_image SDL3_ttf::SDL3_ttf)
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE SDL3::SDL3 SDL3_image::SDL3_image SDL3_ttf::SDL3_ttf SDL3_mixer::SDL3_mixer)
|
||||
|
||||
Reference in New Issue
Block a user