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

边栏推荐
- Penetration practice vulnhub range Tornado
- Samba basic usage
- Technical secrets of ByteDance data platform: implementation and optimization of complex query based on Clickhouse
- EasyCVR设备录像出现无法播放现象的问题修复
- 【Try to Hack】vulnhub DC4
- SCP -i private key usage
- Develop those things: add playback address authentication to easycvr platform
- Gold, silver and four job hopping, interview questions are prepared, and Ali becomes the champion
- Win10+vs2019 Community Edition compiling OpenSSL
- What are the six steps of the software development process? How to draw software development flow chart?
猜你喜欢

Android development interview was badly hit in 3 years, and now the recruitment technical requirements are so high?

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

Heavy disclosure! Hundreds of important information systems have been invaded, and the host has become a key attack target

The difference and relationship between iteratible objects, iterators and generators

Work and leisure suggestions of old programmers

Replace UUID, nanoid is faster and safer!

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

How to write good code - Defensive Programming Guide

Thinkphp6 - CMS multi wechat management system source code

Classpath classpath
随机推荐
Distributed task queue: Celery usage record
Good looking UI mall source code has been scanned, no back door, no encryption
On the language internationalization of Yongzhong Office
Fresh, 2022 advanced Android interview must know 100 questions (interview questions + answer analysis)
Vue uses keep alive to cache page optimization projects
Kernel stray cat stray dog pet adoption platform H5 source code
How to learn automated testing?
Subnet division and summary
[C supplement] [string] display the schedule of a month by date
Flex layout
目前炒期货在哪里开户最正规安全?怎么期货开户?
The latest intelligent factory MES management system software solution
Apk signature process introduction [easy to understand]
Win10+vs2019 Community Edition compiling OpenSSL
[beauty detection artifact] come on, please show your unique skill (is this beauty worthy of the audience?)
ISO 27001 Information Security Management System Certification
【Try to Hack】vulnhub DC4
期货先锋这个软件正规吗安全吗?选择哪家期货公司更安全?
Android development interview was badly hit in 3 years, and now the recruitment technical requirements are so high?
Heavy disclosure! Hundreds of important information systems have been invaded, and the host has become a key attack target