当前位置:网站首页>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 :

边栏推荐
- 網上股票開戶安全嗎?是否可靠?
- Database - MySQL advanced SQL statement (I)
- Euler function: find the number of numbers less than or equal to N and coprime with n
- . Net cloud native architect training camp (permission system code implements actionaccess) -- learning notes
- Irradiance, Joule energy, exercise habits
- MFC obtains local IP (used more in network communication)
- Oracle TRUNC function processing date format
- Is it safe to open a stock account by mobile phone? What do you need to bring with you to open an account?
- Apache iceberg source code analysis: schema evolution
- Record 3 - the state machine realizes key control and measures the number of external pulses
猜你喜欢

What impact will multinational encryption regulation bring to the market in 2022

New 95 community system whole station source code

Extract the compressed package file and retrieve the password
![[PHP foundation] realize the connection between PHP and SQL database](/img/eb/c8953eddfe3b19b0adb5529957d275.jpg)
[PHP foundation] realize the connection between PHP and SQL database

From comedians to NBA Zhan Huang, check the encrypted advertisements during this super bowl

Setting up a time server requires the client to automatically synchronize the time of the server at 9 a.m. every day

Euler function: find the number of numbers less than or equal to N and coprime with n
![Htt [ripro network disk link detection plug-in] currently supports four common network disks](/img/e4/c06b94243cdbe391b8b2124ff30789.jpg)
Htt [ripro network disk link detection plug-in] currently supports four common network disks

Gold, silver and four job hopping, interview questions are prepared, and Ali becomes the champion

Cloud picture says | distributed transaction management DTM: the little helper behind "buy buy buy"
随机推荐
t10_ Adapting to Market Participantsand Conditions
传感器尺寸、像素、DPI分辨率、英寸、毫米的关系
Good looking UI mall source code has been scanned, no back door, no encryption
Smart factory digital management system software platform
Highly reliable program storage and startup control system based on anti fuse FPGA and QSPI flash
Yolov5 practice: teach object detection by hand
Redis -- data type and operation
Step size of ode45 and reltol abstol
Distributed task queue: Celery usage record
Unity3d extended toolbar
Basic usage of shell script
Slider verification code identification gadget display
Relationship between sensor size, pixel, dpi resolution, inch and millimeter
Htt [ripro network disk link detection plug-in] currently supports four common network disks
The new server is packaged with the source code of H5 mall with an operation level value of several thousand
Nearly 60% of the employees strongly support Ctrip's "3+2" working mode, and work at home for two days a week
手机开户股票开户安全吗?那么开户需要带些什么?
Flex layout
Alibaba cloud Li Feifei: China's cloud database has taken the lead in many mainstream technological innovations abroad
EasyCVR通过国标GB28181协议接入设备,出现设备自动拉流是什么原因?