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

边栏推荐
- Common design parameters of solid rocket motor
- Distributed task queue: Celery usage record
- Detailed explanation of ArrayList expansion
- SPIE Western optoelectronics exhibition returned offline and successfully held a science and engineering event
- (6) VIM editor MV cat redirection standard input and output more pipe symbols head tail
- EasyCVR设备录像出现无法播放现象的问题修复
- Pytorch crossentropyloss learning
- Highly reliable program storage and startup control system based on anti fuse FPGA and QSPI flash
- ACL 2022 | decomposed meta learning small sample named entity recognition
- Is the fund of futures account safe? How to open an account?
猜你喜欢

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

Quick foundation of group theory (5): generators, Kelley graphs, orbits, cyclic graphs, and "dimensions" of groups?

Leetcode 1380. Lucky numbers in the matrix (save the minimum number of each row and the maximum number of each column)

LeetCode 148. Sort linked list

New 95 community system whole station source code

. Net cloud native architect training camp (permission system code implements actionaccess) -- learning notes

Data query language (DQL)

Euler function: find the number of numbers less than or equal to N and coprime with n

Wechat applet blind box - docking wechat payment

Samba basic usage
随机推荐
Equipment simulation and deduction training system software
Small exercise -- subnet division and summary
Gold, silver and four job hopping, interview questions are prepared, and Ali becomes the champion
Penetration practice vulnhub range Nemesis
js如何将带有分割符的字符串转化成一个n维数组
MES production equipment manufacturing execution system software
Is it safe to open an ETF account online? What are the steps?
Relationship between sensor size, pixel, dpi resolution, inch and millimeter
Subnet division and summary
Mujoco's biped robot Darwin model
网上股票开户安全吗?是否可靠?
The difference and relationship between iteratible objects, iterators and generators
Talk about the favorite tools used by project managers
目前炒期货在哪里开户最正规安全?怎么期货开户?
Growing up in the competition -- (Guangyou's most handsome cub) Pikachu walking
Glidefast consulting was selected as the elite partner of servicenow in 2022
Develop those things: add playback address authentication to easycvr platform
SCP -i private key usage
Intel's open source deep learning tool library openvino will increase cooperation with local software and hardware parties and continue to open
Is it reasonable and safe to open a securities account for 10000 shares free of charge? How to say