热门

最新

红包

立Flag

投票

同城

我的

发布
m0_61835524
昆嵛山苏
2 年前
truem0_61835524

# 遍历项目根目录下所有的 .cpp 文件
file (GLOB_RECURSE files *.cpp)
foreach (file ${files})
string(REGEX REPLACE ".+/(.+)\\..*" "\\1" exe ${file})
add_executable (${exe} ${file})
message (\ \ \ \ --\ src/${exe}.cpp\ will\ be\ compiled\ to\ bin/${exe})
endforeach ()



记得要删掉原来的add_executable

clion怎么做刷题配置

CSDN App 扫码分享
分享
评论
点赞
打赏
  • 复制链接
  • 举报
下一条:
1
立即登录