snapcast/common/CMakeLists.txt
2025-01-24 21:30:19 +01:00

22 lines
542 B
CMake

set(SOURCES resampler.cpp sample_format.cpp jwt.cpp base64.cpp stream_uri.cpp
utils/string_utils.cpp)
if(NOT WIN32 AND NOT ANDROID)
list(APPEND SOURCES daemon.cpp)
endif()
include_directories(${OPENSSL_INCLUDE_DIR})
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()
target_link_libraries(common OpenSSL::Crypto OpenSSL::SSL)