代码拉取完成,页面将自动刷新
cmake_minimum_required(VERSION 3.5)
project (main)
#set (IDPS_RUN_PLATFORM MC_PLATFORM)#运行平台设置迈冲平台
set (IDPS_RUN_PLATFORM RK2632A_PLATFORM)#运行平台设置软方平台
#set (IDPS_RUN_PLATFORM XC_SG800_PLATFORM)#运行平台设置星创平台SG800
if(IDPS_RUN_PLATFORM STREQUAL MC_PLATFORM)
set (exec_out_ver 1.1.0.58)
elseif(IDPS_RUN_PLATFORM STREQUAL RK2632A_PLATFORM)
set (exec_out_ver 2.0.0.58)
else()
set (exec_out_ver 1.0.0.58)
endif()
set (SOFT_VER_DEF BINVER)
if(IDPS_RUN_PLATFORM STREQUAL MC_PLATFORM)
set (CMAKE_C_COMPILER "arm-linux-gnueabihf-gcc")
set (CMAKE_CXX_COMPILER "arm-linux-gnueabihf-g++")
elseif(IDPS_RUN_PLATFORM STREQUAL XC_SG800_PLATFORM)
set (CMAKE_C_COMPILER "aarch64-openwrt-linux-gcc")
set (CMAKE_CXX_COMPILER "aarch64-openwrt-linux-g++")
else()
set (CMAKE_C_COMPILER "gcc")
set (CMAKE_CXX_COMPILER "g++")
endif()
include_directories (./)
include_directories (inc)
include_directories (Idps_inc)
include_directories (can_inc)
aux_source_directory (src SRC_LIST0)
aux_source_directory (src SRC_LIST1)
aux_source_directory (can_driver SRC_LIST2)
aux_source_directory (idps_driver SRC_LIST3)
#add_compile_options(-std=c99)
#add_compile_options(-O0 -g3 -Wall -c -fmessage-length=0)
add_compile_options(-g -D ${IDPS_RUN_PLATFORM})#全局宏定义 运行平台设置
add_definitions(-DBINVER="${exec_out_ver}")
LINK_LIBRARIES(-lm -lpthread -lsqlite3)
set (EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
add_executable(${exec_out_ver} ${SRC_LIST0} ${SRC_LIST1} ${SRC_LIST2} ${SRC_LIST3} )
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。