Descent3/sndlib/CMakeLists.txt
Azamat H. Hackimov 3bd07d1f7e Reordering dependant on sndlib modules
Properly include and reuse produced static lib in other components.
2024-05-22 22:03:46 +03:00

29 lines
451 B
CMake

set(CPPS
hlsoundlib.cpp
sndrender.cpp
soundload.cpp
ddsoundload.cpp
ssl_lib.cpp
$<$<PLATFORM_ID:Windows>:
ds3dlib.cpp
dsound3d.cpp
eax.cpp
geometry.cpp
>
$<$<PLATFORM_ID:Darwin,Linux>:
mixer.cpp
sdlsound.cpp
>
)
add_library(sndlib STATIC ${CPPS})
target_link_libraries(sndlib PRIVATE
cfile
stream_audio
)
target_include_directories(sndlib PUBLIC
$<BUILD_INTERFACE:
${PROJECT_SOURCE_DIR}/sndlib
>
)