1
0
Fork 0
mirror of https://github.com/badaix/snapcast synced 2025-10-18 01:33:54 +02:00
snapcast/common/CMakeLists.txt
Johannes Pohl d384b73c6e
Sandbox (#1444)
* Add "isInDirectory"
* Process stream sources must be located in sandbox_dir
2025-09-17 21:28:58 +02:00

18 lines
450 B
CMake

set(SOURCES resampler.cpp sample_format.cpp base64.cpp stream_uri.cpp
utils/string_utils.cpp utils/file_utils.cpp)
if(NOT WIN32 AND NOT ANDROID)
list(APPEND SOURCES daemon.cpp)
endif()
if(SOXR_FOUND)
include_directories(${SOXR_INCLUDE_DIRS})
endif(SOXR_FOUND)
add_library(common STATIC ${SOURCES})
if(ANDROID)
target_link_libraries(common soxr::soxr)
elseif(SOXR_FOUND)
target_link_libraries(common ${SOXR_LIBRARIES})
endif()