mirror of
https://github.com/morgan9e/UxPlay
synced 2026-04-14 00:04:13 +09:00
the plist library is removed (the Linux distributions version will be used) (libplist 2.0) the library llhttp v 6.0.2 is added to replace http_parser The curve25519 and ed25519 libraries are removed, and replaced with their OpenSSL 1.1.1 implementations crypto is updated
30 lines
748 B
CMake
Executable File
30 lines
748 B
CMake
Executable File
cmake_minimum_required(VERSION 3.4.1)
|
|
include_directories( playfair llhttp )
|
|
|
|
aux_source_directory(. play_src)
|
|
set(DIR_SRCS ${play_src})
|
|
|
|
add_library( airplay
|
|
STATIC
|
|
${DIR_SRCS}
|
|
)
|
|
|
|
find_library( LIBPLIST NAMES plist plist-2.0 )
|
|
|
|
target_link_libraries( airplay
|
|
pthread
|
|
playfair
|
|
llhttp
|
|
${LIBPLIST} )
|
|
|
|
if( UNIX AND NOT APPLE )
|
|
find_package(OpenSSL 1.1.1 REQUIRED)
|
|
target_compile_definitions(airplay PUBLIC OPENSSL_API_COMPAT=0x10101000L)
|
|
target_link_libraries( airplay OpenSSL::Crypto )
|
|
target_link_libraries( airplay dns_sd )
|
|
else()
|
|
include_directories( /usr/local/opt/openssl@1.1/include/ )
|
|
target_link_libraries( airplay /usr/local/opt/openssl@1.1/lib/libcrypto.a )
|
|
endif()
|
|
|