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

边栏推荐
- Source code of new campus errand / campus task platform on mutual station
- Blackwich: the roadmap of decarbonization is the first step to realize the equitable energy transformation in Asia
- Yuancosmos game farmersworld farmers world - core content of the second conference in China!
- Step size of ode45 and reltol abstol
- Kia recalls some K3 new energy with potential safety hazards
- Definition of rotation axis in mujoco
- Record 3 - the state machine realizes key control and measures the number of external pulses
- Set the style of QT property sheet control
- 目前炒期货在哪里开户最正规安全?怎么期货开户?
- Technical secrets of ByteDance data platform: implementation and optimization of complex query based on Clickhouse
猜你喜欢

Fix the black screen caused by iPhone system failure

Data warehouse (3) star model and dimension modeling of data warehouse modeling
![[splishsplash] about how to receive / display user parameters, MVC mode and genparam on GUI and JSON](/img/83/9bd9ce7608ebfe7207ac008b9e8ab1.png)
[splishsplash] about how to receive / display user parameters, MVC mode and genparam on GUI and JSON

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

Mujoco's biped robot Darwin model

The method of real-time tracking the current price of London Silver

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

Highly reliable program storage and startup control system based on anti fuse FPGA and QSPI flash

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

LeetCode 148. Sort linked list
随机推荐
ArrayList扩容详解
Thinkphp6 - CMS multi wechat management system source code
Zabbix报警执行远程命令
MES production equipment manufacturing execution system software
Source code of new campus errand / campus task platform on mutual station
The difference and relationship between iteratible objects, iterators and generators
Intelligent operation and maintenance practice: banking business process and single transaction tracking
Oracle TRUNC function processing date format
Can hero sports go public against the wind?
Apache iceberg source code analysis: schema evolution
What are the legal risks of NFT brought by stars such as curry and O'Neill?
網上股票開戶安全嗎?是否可靠?
Is it safe to open an ETF account online? What are the steps?
证券开户安全么,有没有什么样的危险呢
Is it reasonable and safe to open a securities account for 10000 shares free of charge? How to say
Is the fund of futures account safe? How to open an account?
Cloud picture says | distributed transaction management DTM: the little helper behind "buy buy buy"
Growing up in the competition -- (Guangyou's most handsome cub) Pikachu walking
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
. Net cloud native architect training camp (permission system code implements actionaccess) -- learning notes