没有合适的资源?快使用搜索试试~ 我知道了~
C++版本使用CMakeLists.txt编译(同目录多个源文件)可执行文件
![star](https://csdnimg.cn/release/downloadcmsfe/public/img/star.98a08eaa.png)
温馨提示
C++版本使用CMakeLists.txt编译(同目录多个源文件)可执行文件-C++版本使用CMakeLists.txt编译(同目录多个源文件)可执行文件-C++版本使用CMakeLists.txt编译(同目录多个源文件)可执行文件
资源推荐
资源详情
资源评论
![txt](https://img-home.csdnimg.cn/images/20210720083642.png)
![txt](https://img-home.csdnimg.cn/images/20210720083642.png)
![tar](https://img-home.csdnimg.cn/images/20210720083646.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![doc](https://img-home.csdnimg.cn/images/20210720083327.png)
C++版本使用CMakeLists.txt编译(同目录多个源文件)可执行文件
[root@localhost CMakeLists1]# ls
CMakeLists.txt Function.cpp Function.h main.cpp
# 1.创建C++代码main.cpp、Function.h、Function.cpp
[root@localhost CMakeLists1]# cat Function.h
/*!
* * Copyright (c) 2020,ZYF.
* * All Rights Reserved.
* *
* * \file Function.cpp
* * \brief 输出功能声明
* *
* * \author ZYF
* * \date 2020/7/11 11:25:32
* * \version 1.0.0
* */
#include <iostream>
using namespace std;
/*!
* * \brief 输出“C++版本使用CMakeLists.txt编译(同目录多个源文件)可执行文件。”
* * \returns void :
* * \throws <exception class>
* * \remarks
* * \see
[root@localhost CMakeLists1]# ls
CMakeLists.txt Function.cpp Function.h main.cpp
# 1.创建C++代码main.cpp、Function.h、Function.cpp
[root@localhost CMakeLists1]# cat Function.h
/*!
* * Copyright (c) 2020,ZYF.
* * All Rights Reserved.
* *
* * \file Function.cpp
* * \brief 输出功能声明
* *
* * \author ZYF
* * \date 2020/7/11 11:25:32
* * \version 1.0.0
* */
#include <iostream>
using namespace std;
/*!
* * \brief 输出“C++版本使用CMakeLists.txt编译(同目录多个源文件)可执行文件。”
* * \returns void :
* * \throws <exception class>
* * \remarks
* * \see
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
- 小破破破2021-06-01毛用没有,还是写死几个CPP的,吐了
![avatar](https://profile-avatar.csdnimg.cn/default.jpg!1)
Zhangyanfeng1
- 粉丝: 18
- 资源: 25
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)