当前位置:网站首页>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
边栏推荐
猜你喜欢
![[observation] softcom power liutianwen: embrace change and](/img/d8/a367c26b51d9dbaf53bf4fe2a13917.png)
[observation] softcom power liutianwen: embrace change and "follow the trend" to become an "enabler" of China's digital economy

data link layer

如何设置 Pod 到指定节点运行

关于印发宝安区重点产业项目和总部项目遴选及用地保障实施细则(2022修订版)的通知
![[fishing artifact] code tool for lowering the seconds of UI Library -- form part (I) design](/img/ad/0efd744334bf648b149aa1841b58af.png)
[fishing artifact] code tool for lowering the seconds of UI Library -- form part (I) design

通过MeterSphere和DataEase实现项目Bug处理进展实时跟进

0/1分数规划专题

As the "only" privacy computing provider, insight technology is the "first" to settle in the Yangtze River Delta data element circulation service platform

3-2 host discovery - layer 3 discovery

Linux安装MySQL5
随机推荐
Community interview -- jumpserver open source fortress in the eyes of an it newcomer
攻防演练中的防守基石——全方位监控
畫虎國手孟祥順數字藏品限量發售,隨贈虎年茅臺
Introduction to the latest version 24.1.0.360 update of CorelDRAW
Regular expression series of mobile phone numbers
软件工程—原理、方法与应用
60天远程办公经验分享 | 社区征文
fastadmin后台设置单选按钮
[network orientation training] - Enterprise Park Network Design - [had done]
Jupyter服务安装及启动
Hangfire details
社区访谈丨一个IT新人眼中的JumpServer开源堡垒机
Fastadmin background setting radio button
【编译原理】语义分析
JMeter BeanShell explanation and thread calling
liunx指令
Flume ng configuration
【编译原理】类型检查
日本樱桃一颗拍出1980元天价,网友:吃了有上当的感觉
Proxmox cluster node crash handling