1 Star 0 Fork 46

qiuqiuring/mcs_x86

forked from openEuler/mcs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
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)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/qiuqiuring/mcs_x86.git
git@gitee.com:qiuqiuring/mcs_x86.git
qiuqiuring
mcs_x86
mcs_x86
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385