1 Star 0 Fork 47

Zengzy/mcs

forked from openEuler/mcs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 948 Bytes
一键复制 编辑 原始数据 按行查看 历史
chenminjun 提交于 2023-03-24 11:14 . openamp_demo: modify CMakeLists.txt
cmake_minimum_required(VERSION 3.19)
project(openeuler_mcs_demo)
# append -pthread flags
add_compile_options(-pthread)
message(STATUS "DEMO_TARGET=${DEMO_TARGET}")
set(MCS_LIB mcs)
set(SHARED_LINK_LIBS
libopen_amp.so
libmetal.so
libsysfs.so
)
add_subdirectory(library)
set(SRC_FILE
./${DEMO_TARGET}/rpmsg_main.c
)
if(DEMO_TARGET MATCHES "openamp_demo")
list(APPEND SRC_FILE "./rpmsg_pty_demo/rpmsg_pty.c")
list(APPEND SRC_FILE "./${DEMO_TARGET}/rpmsg_matrix_multiply.c")
list(APPEND SRC_FILE "./${DEMO_TARGET}/rpmsg_ping.c")
elseif(DEMO_TARGET MATCHES "rpmsg_pty_demo")
list(APPEND SRC_FILE "./${DEMO_TARGET}/rpmsg_pty.c")
else()
message(FATAL_ERROR "DEMO_TARGET: choose a target to build.
[rpmsg_pty_demo]")
endif()
include_directories(
${DEMO_TARGET}
library/include/mcs
)
add_executable(rpmsg_main ${SRC_FILE})
target_link_libraries(rpmsg_main ${MCS_LIB} ${SHARED_LINK_LIBS})
install(TARGETS rpmsg_main DESTINATION bin)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zengzy6/mcs.git
git@gitee.com:zengzy6/mcs.git
zengzy6
mcs
mcs
master

搜索帮助