当前位置:网站首页>[visual studio 2019] create and import cmake project
[visual studio 2019] create and import cmake project
2022-07-02 11:46:00 【Programmer community】
List of articles
- I . establish CMake project
- II . Import CMake project
- III Open new project Build solution error
First, follow the previous blog 【Visual Studio】Visual Studio 2019 Community Edition CMakeList Development environment installation ( download | Install related components | Create compilation execution project | Error handling ) Installation development environment , Then on the basis of the above , Make this blog content ;
I . establish CMake project
open Visual Studio , Click on the right " Create a new project ( N ) " Options ;

In the new dialog box , Choose to create " CMake project " ;

Enter the project name , Select the project build directory ;

After entering the project interface , wait for 1 ~ 2 minute , Wait for the first compilation to pass , Build solution ;

Click the run button under the menu bar , Run the program ;

II . Import CMake project
In the welcome interface , choice " Open local folder ( F ) " ,
Select the root directory of the project , Then click Select folder ;

Enter the interface and wait for the project to compile , You can run ;

III Open new project Build solution error
Change the location of the project , Re import , There will be various errors in compilation , You need to delete the division here Source code All other files , recompile that will do ;
Delete the following .vs and out Two directories , And then in VS Open in , Can be compiled through ;

边栏推荐
- ros缺少xacro的包
- Is it safe to open a stock account online? I'm a novice, please guide me
- Cluster Analysis in R Simplified and Enhanced
- BEAUTIFUL GGPLOT VENN DIAGRAM WITH R
- ctf 记录
- MySQL stored procedure cursor traversal result set
- ESP32音频框架 ESP-ADF 添加按键外设流程代码跟踪
- Multi line display and single line display of tqdm
- Map set assignment to database
- Redis超出最大内存错误OOM command not allowed when used memory > 'maxmemory'
猜你喜欢

excel表格中选中单元格出现十字带阴影的选中效果

Always report errors when connecting to MySQL database

【云原生】2.5 Kubernetes 核心实战(下)

Cluster Analysis in R Simplified and Enhanced

可昇級合約的原理-DelegateCall

预言机链上链下调研

Research on and off the Oracle chain

The selected cells in Excel form have the selection effect of cross shading

由粒子加速器产生的反中子形成的白洞

From the perspective of attack surface, see the practice of zero trust scheme of Xinchuang
随机推荐
Homer forecast motif
Redis exceeds the maximum memory error oom command not allowed when used memory & gt; ' maxmemory'
LVM operation
II Stm32f407 chip GPIO programming, register operation, library function operation and bit segment operation
CentOS8之mysql基本用法
Pyqt5+opencv project practice: microcirculator pictures, video recording and manual comparison software (with source code)
揭露数据不一致的利器 —— 实时核对系统
R HISTOGRAM EXAMPLE QUICK REFERENCE
mysql链表数据存储查询排序问题
Esp32 stores the distribution network information +led displays the distribution network status + press the key to clear the distribution network information (source code attached)
How to Create a Nice Box and Whisker Plot in R
QT获取某个日期是第几周
Beautiful and intelligent, Haval H6 supreme+ makes Yuanxiao travel safer
Some things configured from ros1 to ros2
Cluster Analysis in R Simplified and Enhanced
tidb-dm报警DM_sync_process_exists_with_error排查
STM32 single chip microcomputer programming learning
PowerBI中导出数据方法汇总
[idea] use the plug-in to reverse generate code with one click
ctf 记录