当前位置:网站首页>Cmake development - Multi Directory Project
Cmake development - Multi Directory Project
2022-06-29 20:12:00 【Wildcraner】
A single file :
First step : establish CmakeLists.txt file 
The second step : To write CmakeLists
# Set minimum version
cmake_minimum_required(VERSION 3.0)
# Set project name
project (SWAP)
# Set header file path
include_directories( include )
# Add variables
set(TEST_MATH main.cpp src/swap.cpp)
# Generate executable files
add_executable(swap_02 ${
TEST_MATH})
The third step : function
# 1. In the current directory , establish build Folder
mkdir build
# 2. Enter into build Folder
cd build
# 3. Compile the parent directory CMakeLists.txt, Generate Makefile And other documents
cmake ..
# 4. perform make command , Generate target
make
边栏推荐
- Several policies of Shenzhen Futian District to support investment attraction in 2022
- [compilation principle] syntax analysis
- Performance improvement at the cost of other components is not good
- Dynamics CRM: 本地部署的服务器中, Sandbox, Unzip, VSS, Asynchronous还有Monitor服务的作用
- How to set a pod to run on a specified node
- Real time tracking of bug handling progress of the project through metersphere and dataease
- 命令执行(RCE)漏洞
- A great open source image watermarking solution
- go: 如何编写一个正确的udp服务端
- Regular expression series of mobile phone numbers
猜你喜欢

How to set a pod to run on a specified node

The list of winners in the classic Smurfs of childhood: bluedad's digital collection was announced

日本樱桃一颗拍出1980元天价,网友:吃了有上当的感觉
![[notes] take notes again -- learn by doing Verilog HDL – 014](/img/92/ba794253f1588ff9ad87d2571a453e.png)
[notes] take notes again -- learn by doing Verilog HDL – 014

Bigder:自动化测试工程师

Deficiencies and optimization schemes in Dao

Three.js开发:粗线的画法
![[network orientation training] - Enterprise Park Network Design - [had done]](/img/12/17f95378fcc6d0fef15feb99cc4f49.png)
[network orientation training] - Enterprise Park Network Design - [had done]

Flume configuration 2 - ganglia for monitoring

Lock4j -- distributed lock Middleware -- customize the logic of lock acquisition failure
随机推荐
Koa source code analysis
jfinal中如何使用过滤器监控Druid监听SQL执行?
NLP - GIZA++ 实现词对齐
剑指 Offer 41. 数据流中的中位数
一个超赞的开源的图片去水印解决方案
Fastadmin background setting radio button
剑指 Offer 59 - II. 队列的最大值
Finally, Amazon~
data link layer
数据链路层
CorelDRAW2022全新版V24.1.0.360更新
.NetCore统一认证授权学习——Run(1)
Golang基础学习
剑指 Offer 59 - I. 滑动窗口的最大值
Withdrawal of user curve in qualified currency means loss
ETCD数据库源码分析——服务端PUT流程
[compilation principle] type check
thinkphp5中的配置如何使用
Jmeter之BeanShell详解和夸线程调用
Configuration du Flume 4 - source personnalisée + sink