mirror of
https://github.com/morgan9e/UxPlay
synced 2026-04-14 00:04:13 +09:00
28 lines
814 B
CMake
Executable File
28 lines
814 B
CMake
Executable File
cmake_minimum_required(VERSION 3.4.1)
|
|
include_directories( playfair llhttp )
|
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Ofast -march=native -DSTANDALONE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -D_LINUX -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -U_FORTIFY_SOURCE -Wall -g")
|
|
|
|
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} )
|
|
|
|
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 )
|
|
|
|
|