当前位置:网站首页>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=Release
04. Run the program
Enter with exe The catalog of ( stay Debug or Release Under the folder )
cd Debug // Or is it cd Release
perform HelloWorld.exe
HelloWorld.exe
Output results :
边栏推荐
- Growing up in the competition -- (Guangyou's most handsome cub) Pikachu walking
- 聊聊项目经理最爱使用的工具
- 目前炒期货在哪里开户最正规安全?怎么期货开户?
- Setting up a time server requires the client to automatically synchronize the time of the server at 9 a.m. every day
- To improve the efficiency of office collaboration, trackup may be the best choice
- Glidefast consulting was selected as the elite partner of servicenow in 2022
- Slider verification code identification gadget display
- Redis主从实现10秒检查与恢复
- Relationship between sensor size, pixel, dpi resolution, inch and millimeter
- Classpath classpath
猜你喜欢
Countdownlatch blocking wait for multithreading concurrency
ISO 27001 Information Security Management System Certification
Record 3 - the state machine realizes key control and measures the number of external pulses
An example of data analysis of an old swatch and an old hard disk disassembly and assembly combined with the sensor of an electromagnetic press
Kernel stray cat stray dog pet adoption platform H5 source code
Data warehouse (3) star model and dimension modeling of data warehouse modeling
June issue | antdb database participated in the preparation of the "Database Development Research Report" and appeared on the list of information technology and entrepreneurship industries
New 95 community system whole station source code
Growing up in the competition -- (Guangyou's most handsome cub) Pikachu walking
ACM mm 2022 video understanding challenge video classification track champion autox team technology sharing
随机推荐
Common design parameters of solid rocket motor
MySQL + JSON = King fried
The difference and relationship between iteratible objects, iterators and generators
At present, where is the most formal and safe account opening for futures speculation? How to open a futures account?
[splishsplash] about how to receive / display user parameters, MVC mode and genparam on GUI and JSON
Zabbix报警执行远程命令
ZABBIX alarm execute remote command
What impact will multinational encryption regulation bring to the market in 2022
ISO 27001 Information Security Management System Certification
Step size of ode45 and reltol abstol
Product service, operation characteristics
网上股票开户安全吗?是否可靠?
聊聊项目经理最爱使用的工具
Draw drawing process of UI drawing process
MFC obtains local IP (used more in network communication)
Pytorch crossentropyloss learning
Android development interview was badly hit in 3 years, and now the recruitment technical requirements are so high?
Technical secrets of ByteDance data platform: implementation and optimization of complex query based on Clickhouse
js如何将带有分割符的字符串转化成一个n维数组
Unity3d extended toolbar