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

边栏推荐
- Rust language - cargo, crates io
- D @ safety and dip1000
- Wechat applet blind box - docking wechat payment
- Basic usage of shell script
- Rotation order and universal lock of unity panel
- Htt [ripro network disk link detection plug-in] currently supports four common network disks
- 2022 Heilongjiang latest fire protection facility operator simulation test question bank and answers
- Review Net 20th anniversary development and 51aspx growth
- Distributed task queue: Celery usage record
- Develop those things: add playback address authentication to easycvr platform
猜你喜欢

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

Nearly 60% of the employees strongly support Ctrip's "3+2" working mode, and work at home for two days a week

Highly reliable program storage and startup control system based on anti fuse FPGA and QSPI flash
![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

Bug of QQ browser article comment: the commentator is wrong
![[C supplement] [string] display the schedule of a month by date](/img/9c/5fcc6bfc8fe0f433c0d1eba92b5c3e.jpg)
[C supplement] [string] display the schedule of a month by date

How to write good code - Defensive Programming Guide

ACM mm 2022 video understanding challenge video classification track champion autox team technology sharing

Yuancosmos game farmersworld farmers world - core content of the second conference in China!

Cloud picture says | distributed transaction management DTM: the little helper behind "buy buy buy"
随机推荐
The latest intelligent factory MES management system software solution
Software construction scheme of smart factory collaborative management and control application system
[2. Basics of Delphi grammar] 4 Object Pascal operators and expressions
Talk about the favorite tools used by project managers
Slider verification code identification gadget display
Review Net 20th anniversary development and 51aspx growth
Single element of an ordered array
证券开户安全么,有没有什么样的危险呢
Session layer of csframework, server and client (1)
PIP version problems: PIP problems still occur when installing akshare and using Tsinghua source and Douban source
Detailed explanation of ArrayList expansion
Thinkphp6 - CMS multi wechat management system source code
On the language internationalization of Yongzhong Office
Extract the compressed package file and retrieve the password
Android development interview was badly hit in 3 years, and now the recruitment technical requirements are so high?
Database - MySQL advanced SQL statement (I)
When the fixed frequency artifact falls in love with multithreading | ros2 fixed frequency topic release demo
Data query language (DQL)
Penetration practice vulnhub range Nemesis
Highly reliable program storage and startup control system based on anti fuse FPGA and QSPI flash