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

边栏推荐
- [C supplement] [string] display the schedule of a month by date
- EasyCVR设备录像出现无法播放现象的问题修复
- Product service, operation characteristics
- How to write good code - Defensive Programming Guide
- Mujoco XML modeling
- Heavy disclosure! Hundreds of important information systems have been invaded, and the host has become a key attack target
- Yolov5 practice: teach object detection by hand
- MySQL -- explain performance optimization
- Three dimensional anti-terrorism Simulation Drill deduction training system software
- Develop those things: add playback address authentication to easycvr platform
猜你喜欢

Data query language (DQL)

LeetCode 148. Sort linked list

Product service, operation characteristics

An example of data analysis of an old swatch and an old hard disk disassembly and assembly combined with the sensor of an electromagnetic press

【Try to Hack】vulnhub DC4

Penetration practice vulnhub range Nemesis

Check log4j problems using stain analysis

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

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

Penetration practice vulnhub range Tornado
随机推荐
Is the software of futures pioneer formal and safe? Which futures company is safer to choose?
徽商期货是正规期货平台吗?在徽商期货开户安全吗?
Cloud picture says | distributed transaction management DTM: the little helper behind "buy buy buy"
L'ouverture d'un compte d'actions en ligne est - elle sécurisée? Fiable?
证券开户安全么,有没有什么样的危险呢
What are the legal risks of NFT brought by stars such as curry and O'Neill?
Small exercise -- subnet division and summary
Domestic spot silver should be understood
EasyCVR设备录像出现无法播放现象的问题修复
SLO is increasingly used to achieve observability | Devops
Is it safe to open a stock account by mobile phone? What do you need to bring with you to open an account?
Countdownlatch blocking wait for multithreading concurrency
SCP -i private key usage
Slider verification code identification gadget display
Extract the compressed package file and retrieve the password
(6) VIM editor MV cat redirection standard input and output more pipe symbols head tail
Record 3 - the state machine realizes key control and measures the number of external pulses
传感器尺寸、像素、DPI分辨率、英寸、毫米的关系
Step size of ode45 and reltol abstol
Common design parameters of solid rocket motor