lots of changes in code for ssl client

This commit is contained in:
tdv
2025-10-13 20:01:16 +03:00
parent 78b7d495d4
commit 9055a55ad3
9 changed files with 322 additions and 284 deletions

View File

@@ -3,13 +3,14 @@ project( snoop_device )
set( CMAKE_CXX_STANDARD 23 )
find_package(OpenSSL REQUIRED)
add_subdirectory( third_party/portaudio )
add_subdirectory( third_party/opus )
add_subdirectory( third_party/cpp-httplib )
add_subdirectory( third_party/nlohmann_json )
add_subdirectory( third_party/spdlog )
add_subdirectory( third_party/libogg )
add_subdirectory( third_party/socket.io-client-cpp )
add_subdirectory( third_party/libdatachannel )
option(USE_ALSA_ADAPTER "Use ALSA Adapter" OFF)
@@ -39,4 +40,17 @@ set( HEADERS
add_executable( ${PROJECT_NAME} ${SOURCES} ${HEADERS} )
target_include_directories( ${PROJECT_NAME} PRIVATE src )
target_link_libraries( ${PROJECT_NAME} PRIVATE portaudio_static opus sioclient_tls nlohmann_json spdlog::spdlog_header_only Ogg::ogg httplib::httplib )
# Enable HTTPS (mTLS) support in cpp-httplib across ALL TUs of this target
target_compile_definitions(${PROJECT_NAME} PRIVATE CPPHTTPLIB_OPENSSL_SUPPORT)
target_link_libraries( ${PROJECT_NAME} PRIVATE
portaudio_static
opus
nlohmann_json
spdlog::spdlog_header_only
Ogg::ogg
httplib::httplib
datachannel
OpenSSL::SSL
OpenSSL::Crypto
)