Descent3/sndlib/CMakeLists.txt
2024-09-24 23:00:53 +03:00

36 lines
508 B
CMake

set(HEADERS
ddsndgeometry.h
hlsoundlib.h
mixer.h
sdlsound.h
sndrender.h
soundload.h
ssl_lib.h)
set(CPPS
hlsoundlib.cpp
sndrender.cpp
soundload.cpp
ddsoundload.cpp
ssl_lib.cpp
mixer.cpp
sdlgeometry.cpp
sdlsound.cpp
)
add_library(sndlib STATIC ${HEADERS} ${CPPS})
target_link_libraries(sndlib PRIVATE
cfile
ddebug
ddio
logger
mem
stream_audio
physics
SDL2::SDL2
)
target_include_directories(sndlib PUBLIC
$<BUILD_INTERFACE:
${PROJECT_SOURCE_DIR}/sndlib
>
)