2024-03-12 14:46:37 +08:00
|
|
|
cmake_minimum_required(VERSION 3.16)
|
|
|
|
|
|
|
|
project(PassengerStatistics)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
|
|
|
|
option(CROSS_BUILD "build for embeded product." ON)
|
|
|
|
|
|
|
|
if(CROSS_BUILD)
|
|
|
|
set(Libraries_ROOT /opt/aarch64-v01c01-linux-gnu-gcc/lib)
|
|
|
|
set(OPENSSL_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/openssl)
|
|
|
|
set(OPENSSL_LIBRARY_DIRS ${OPENSSL_ROOT_DIR}/libs)
|
|
|
|
else()
|
|
|
|
set(Libraries_ROOT /opt/Libraries)
|
|
|
|
endif()
|
|
|
|
set(OPENSSL_INCLUDE_DIR ${OPENSSL_ROOT_DIR}/include)
|
|
|
|
set(OPENSSL_LIBRARIES ssl crypto)
|
|
|
|
|
|
|
|
set(BOOST_ROOT ${Libraries_ROOT}/boost_1_84_0)
|
|
|
|
set(Boost_INCLUDE_DIR ${BOOST_ROOT}/include)
|
|
|
|
option(Boost_USE_STATIC_LIBS OFF)
|
|
|
|
find_package(Boost REQUIRED COMPONENTS log serialization)
|
|
|
|
|
2024-03-13 18:01:36 +08:00
|
|
|
set(ZLMediaKit_ROOT /opt/aarch64-v01c01-linux-gnu-gcc/lib/ZLMediaKit)
|
|
|
|
set(ZLMediaKit_INCLUDE_DIR ${ZLMediaKit_ROOT}/include)
|
|
|
|
set(ZLMediaKit_LIBRARY_DIRS ${ZLMediaKit_ROOT}/lib)
|
|
|
|
|
2024-05-30 12:26:17 +08:00
|
|
|
if(CROSS_BUILD)
|
2024-03-25 00:09:33 +08:00
|
|
|
add_subdirectory(Main)
|
|
|
|
endif()
|
2024-03-12 14:46:37 +08:00
|
|
|
add_subdirectory(Tools)
|
|
|
|
|
|
|
|
include(FetchContent)
|
|
|
|
|
|
|
|
FetchContent_Declare(Kylin
|
|
|
|
GIT_REPOSITORY https://gitea.amass.fun/amass/Kylin.git
|
|
|
|
)
|
|
|
|
FetchContent_MakeAvailable(Kylin)
|