当前位置:网站首页>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 :
边栏推荐
- 传感器尺寸、像素、DPI分辨率、英寸、毫米的关系
- Slider verification code identification gadget display
- ZABBIX alarm execute remote command
- Heavy disclosure! Hundreds of important information systems have been invaded, and the host has become a key attack target
- L'ouverture d'un compte d'actions en ligne est - elle sécurisée? Fiable?
- Redis master-slave realizes 10 second check and recovery
- The difference and relationship between iteratible objects, iterators and generators
- Can hero sports go public against the wind?
- Distributed task queue: Celery usage record
- Vue uses keep alive to cache page optimization projects
猜你喜欢
Yuancosmos game farmersworld farmers world - core content of the second conference in China!
From comedians to NBA Zhan Huang, check the encrypted advertisements during this super bowl
Fix the black screen caused by iPhone system failure
ACL 2022 | decomposed meta learning small sample named entity recognition
Technical secrets of ByteDance data platform: implementation and optimization of complex query based on Clickhouse
Apache iceberg source code analysis: schema evolution
Fresh, 2022 advanced Android interview must know 100 questions (interview questions + answer analysis)
Gold, silver and four job hopping, interview questions are prepared, and Ali becomes the champion
Gameframework eating guide
Debiasing word embeddings | talking about word embedding and deviation removal # yyds dry goods inventory #
随机推荐
Setting up a time server requires the client to automatically synchronize the time of the server at 9 a.m. every day
Is Huishang futures a regular futures platform? Is it safe to open an account in Huishang futures?
Common design parameters of solid rocket motor
Slider verification code identification gadget display
MySQL + JSON = King fried
Is it reasonable and safe to open a securities account for 10000 shares free of charge? How to say
Irradiance, Joule energy, exercise habits
Leetcode problem solving series -- continuous positive sequence with sum as s (sliding window)
Rotation order and universal lock of unity panel
Draw drawing process of UI drawing process
Source code of new campus errand / campus task platform on mutual station
Htt [ripro network disk link detection plug-in] currently supports four common network disks
D @ safety and dip1000
Mujoco model learning record
Is online stock account opening safe? Is it reliable?
Highly reliable program storage and startup control system based on anti fuse FPGA and QSPI flash
2022 Heilongjiang latest fire protection facility operator simulation test question bank and answers
手机开户股票开户安全吗?那么开户需要带些什么?
From comedians to NBA Zhan Huang, check the encrypted advertisements during this super bowl
Blackwich: the roadmap of decarbonization is the first step to realize the equitable energy transformation in Asia