1 Star 0 Fork 1

showlove/ucos3-posix

forked from MrVW/ucos3-posix 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 1.31 KB
一键复制 编辑 原始数据 按行查看 历史
QuectelWB 提交于 2021-05-23 07:52 . init
PROJECT ("ucos3-posix")
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
SET(TARGET_EXE "ucos3-posix")
SET(CMAKE_C_STANDARD 99)
SET(CMAKE_C_FLAGS_DEBUG "$ENV{CFLAGS} -static -O0 -g3 -Wall -fmessage-length=0 ") #set debug mode c flags
SET(CMAKE_C_FLAGS_RELEASE "$ENV{CFLAGS} -O3 -Wall ") #set release mode c flags
SET(CMAKE_BUILD_TYPE "Debug") #set Debug or Release
### INCLUDE DIR ###
# Application
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/app/Posix/GNU/OS3)
# Ucos-iii Kernel
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/kernel/uC-CPU)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/kernel/uC-CPU/Posix/GNU)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/kernel/uC-LIB)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/kernel/uCOS-III/Ports/Posix/GNU)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/kernel/uCOS-III/Source)
### SUB CMAKE DIR ###
# Ucos-iii Kernel
ADD_SUBDIRECTORY(kernel/uC-CPU/Posix/GNU)
ADD_SUBDIRECTORY(kernel/uC-CPU)
ADD_SUBDIRECTORY(kernel/uCOS-III/Source)
ADD_SUBDIRECTORY(kernel/uCOS-III/Ports/Posix/GNU)
ADD_SUBDIRECTORY(kernel/uC-LIB)
# Application
AUX_SOURCE_DIRECTORY(app/Posix/GNU/OS3 APP_SRC)
### EXE ###
ADD_EXECUTABLE(${TARGET_EXE} ${APP_SRC})
### LINK LIBRARIES ###
SET_TARGET_PROPERTIES(${TARGET_EXE} PROPERTIES LINKER_LANGUAGE C)
# Target Link
TARGET_LINK_LIBRARIES(${TARGET_EXE} ucos-port ucos uclib cpu cpu-arch pthread)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/showlove/ucos3-posix.git
git@gitee.com:showlove/ucos3-posix.git
showlove
ucos3-posix
ucos3-posix
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385