FaceAccess/CMakeLists.txt

45 lines
1.6 KiB
CMake
Raw Normal View History

2024-06-18 14:27:48 +08:00
project(FaceAccess)
cmake_minimum_required(VERSION 3.27)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
2024-09-07 15:42:44 +08:00
option(CROSS_BUILD "build for arm." ON)
if(CROSS_BUILD)
set(OPENSSL_ROOT /opt/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/lib/openssl-3.3.1)
set(OPENSSL_INCLUDE_DIR ${OPENSSL_ROOT}/include)
set(OPENSSL_LIBRARY_DIRS ${OPENSSL_ROOT}/lib)
set(ALSA_ROOT /opt/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/lib/libalsa-1.1.5)
set(ALSA_INCLUDE_DIR ${ALSA_ROOT}/include)
set(ALSA_LIBRARY_DIRS ${ALSA_ROOT}/lib)
set(FFMPEG_ROOT /opt/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/lib/ffmpeg-4.1.3)
set(FFMPEG_INCLUDE_DIR ${FFMPEG_ROOT}/include)
set(FFMPEG_LIBRARY_DIRS ${FFMPEG_ROOT}/lib)
set(MPP_ROOT /opt/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/lib/rockchip_mpp)
set(MPP_INCLUDE_DIR ${MPP_ROOT}/include)
set(MPP_LIBRARY_DIRS ${MPP_ROOT}/rk-libs)
set(KINESIS_ROOT /opt/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/lib/amazon-kinesis-video-streams-webrtc-sdk-c)
else()
set(BOOST_ROOT /opt/Libraries/boost_1_86_0)
set(KINESIS_ROOT /opt/Libraries/amazon-kinesis-video-streams-webrtc-sdk-c)
endif()
option(Boost_USE_STATIC_LIBS OFF)
2024-09-04 17:57:23 +08:00
set(OPENSSL_LIBRARIES ssl crypto)
2024-06-18 14:27:48 +08:00
set(FFMPEG_LIBRARY avcodec avdevice avfilter avformat avutil postproc swresample swscale)
include(FetchContent)
FetchContent_Declare(Kylin
GIT_REPOSITORY https://gitea.amass.fun/amass/Kylin.git
)
FetchContent_MakeAvailable(Kylin)
2024-09-05 12:24:05 +08:00
add_subdirectory(VocieProcess)
2024-06-18 14:27:48 +08:00
add_subdirectory(GatePass)
add_subdirectory(Record)
add_subdirectory(VoucherVerifyServer)