当前位置:网站首页>Operation of cmake under win
Operation of cmake under win
2022-07-01 18:20:00 【Super__ Idol】
Catalog
02. Generate and compile project files
01. establish Cmake Folder
It contains HelloWorld.cpp、CMakeLists.txt.
HelloWorld.cpp:
#include <iostream>
using namespace std;
int main() {
cout<<"HelloWorld"<<endl;
system("pause");
return 0;
}CMakeLists.txt:
cmake_minimum_required (VERSION 2.6)
project (HelloWorld)
add_executable (HelloWorld HelloWorld.cpp)02. Generate and compile project files
Get into cmake Folder Directory , Run the command
cmake .03. Compiler Engineering
Run the command ( notes : The default is Debug Pattern )
cmake --build .To run Release Pattern , Change it to the following order
cmake --build . -- /p:Configuration=Release04. Run the program
Enter with exe The catalog of ( stay Debug or Release Under the folder )
cd Debug // Or is it cd Releaseperform HelloWorld.exe
HelloWorld.exeOutput results :

边栏推荐
- Data warehouse (3) star model and dimension modeling of data warehouse modeling
- Pytorch crossentropyloss learning
- Android development interview was badly hit in 3 years, and now the recruitment technical requirements are so high?
- Enter wechat applet
- 手机开户股票开户安全吗?那么开户需要带些什么?
- Review Net 20th anniversary development and 51aspx growth
- Vue uses keep alive to cache page optimization projects
- 540. Single element in ordered array
- Classpath classpath
- PIP version problems: PIP problems still occur when installing akshare and using Tsinghua source and Douban source
猜你喜欢

Explain in detail the process of realizing Chinese text classification by CNN

2022 Heilongjiang latest fire protection facility operator simulation test question bank and answers

Definition of rotation axis in mujoco

The new server is packaged with the source code of H5 mall with an operation level value of several thousand

Product service, operation characteristics

Yolov5 practice: teach object detection by hand

Debiasing word embeddings | talking about word embedding and deviation removal # yyds dry goods inventory #

【Try to Hack】vulnhub DC4

Domestic spot silver should be understood

LeetCode 148. Sort linked list
随机推荐
Alibaba cloud Li Feifei: China's cloud database has taken the lead in many mainstream technological innovations abroad
This is the latest opportunity of the London bank trend
[C supplement] [string] display the schedule of a month by date
Talk about the favorite tools used by project managers
Nielseniq found that 60% of the re launched products had poor returns
Bug of QQ browser article comment: the commentator is wrong
Oracle TRUNC function processing date format
Sword finger offer II 105 Maximum area of the island
Product service, operation characteristics
The method of real-time tracking the current price of London Silver
What is web application security testing technology?
APK签名流程介绍[通俗易懂]
Redis master-slave realizes 10 second check and recovery
Thinkphp6 - CMS multi wechat management system source code
Software construction scheme of smart factory collaborative management and control application system
Nearly 60% of the employees strongly support Ctrip's "3+2" working mode, and work at home for two days a week
Relationship between sensor size, pixel, dpi resolution, inch and millimeter
Happy new year | 202112 monthly summary
transform. Forward and vector3 Differences in the use of forward
开发那些事儿:EasyCVR平台添加播放地址鉴权