#******************************************************************************* # Copyright © ALIENTEK Co., Ltd. 1998-2021. All rights reserved. # # 顶层CMakeLists.txt # All rights reserved. This program and the accompanying materials # are made available under the terms of the Eclipse Public License v2.0 # and Eclipse Distribution License v1.0 which accompany this distribution. #*******************************************************************************/ cmake_minimum_required(VERSION 3.5.1 FATAL_ERROR) #cmake_minimum_required(VERSION 2.8.12) project(uart_passthrough C) message(STATUS "MainProcess CMake version: " ${CMAKE_VERSION}) message(STATUS "MainProcess CMake system name: " ${CMAKE_SYSTEM_NAME}) message(STATUS "MainProcess CMake system processor: " ${CMAKE_SYSTEM_PROCESSOR}) # 设置可执行文件输出路径 set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin) # 定义源文件变量 SET(SRC_LIST uart_passthrough.c ) # 定义可执行文件目标 add_executable(Uart_passthroughApp ${SRC_LIST} ) #添加编译尾缀 kooloo add 202311 #TARGET_LINK_LIBRARIES(Uart_passthroughApp PRIVATE dl) #TARGET_LINK_LIBRARIES(Uart_passthroughApp PRIVATE rt) # 指定客户端库头文件路径、库路径以及链接库 #通用工具