EdgeGateway_FSU/DevicePortGet/MainProcess_Src/CMakeLists.txt

40 lines
1.5 KiB
CMake
Raw Normal View History

2024-03-15 17:25:04 +08:00
#*******************************************************************************
# 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(MainProcess 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)
#include_directories (Public_Src Public_Src_LIST)
# 定义源文件变量
SET(SRC_LIST
MainProcess.c
../Public_Src/ProcessisRunning.c
../Public_Src/SystemTimeFunc.c
../src/DebugPrint.c
../src/mslog/mslog.c
../src/public.c
../Public_Src/cjson/cJSON.c
)
# 定义可执行文件目标
add_executable(MainProcessApp ${SRC_LIST} ${Public_Src_LIST})
#添加编译尾缀 kooloo add 202311
TARGET_LINK_LIBRARIES(MainProcessApp PRIVATE dl)
TARGET_LINK_LIBRARIES(MainProcessApp PRIVATE rt)
# 指定客户端库头文件路径、库路径以及链接库