# 加载自定义模块
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
project(ZLMediaKit LANGUAGES C CXX)
# 使能 C++11
set(CMAKE_CXX_STANDARD 11)
###############################
SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_SYSTEM_PROCESSOR arm)
#SET(TOOLCHAIN_DIR "/opt/linux/x86-arm/aarch64-mix210-linux")
SET(TOOLCHAIN_DIR "/opt/hisi-linux/x86-arm/arm-himix100-linux")
SET(CMAKE_FIND_ROOT_PATH ${TOOLCHAIN_DIR})
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
#SET(CMAKE_C_COMPILER ${TOOLCHAIN_DIR}/bin/aarch64-mix210-linux-gcc)
#SET(CMAKE_CXX_COMPILER ${TOOLCHAIN_DIR}/bin/aarch64-mix210-linux-g++)
SET(CMAKE_C_COMPILER ${TOOLCHAIN_DIR}/bin/arm-himix100-linux-gcc)
SET(CMAKE_CXX_COMPILER ${TOOLCHAIN_DIR}/bin/arm-himix100-linux-g++)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -o3 -std=c++0x -fpermissive")
include_directories(/home/developer/third/openssl-1.1.1u/3559v200/include)
link_directories( /home/developer/third/openssl-1.1.1u/3559v200/lib )
#link_libraries(avcodec avutil swresample swscale ssl crypto)
#/home/developer/third/ffmpeg-4.2.9/_INSTALL/lib