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

边栏推荐
- Mujoco model learning record
- Develop those things: add playback address authentication to easycvr platform
- Definition of rotation axis in mujoco
- Classpath classpath
- ZABBIX alarm execute remote command
- Subnet division and summary
- LeetCode 148. Sort linked list
- How to retrieve the password for opening Excel files
- 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
猜你喜欢

Yolov5 practice: teach object detection by hand

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

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

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

Cassette helicopter and alternating electric field magnetic manometer DPC

Happy new year | 202112 monthly summary

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

【Try to Hack】vulnhub DC4

Review Net 20th anniversary development and 51aspx growth

transform. Forward and vector3 Differences in the use of forward
随机推荐
Mujoco XML modeling
Length of learning and changing
Leetcode 1380. Lucky numbers in the matrix (save the minimum number of each row and the maximum number of each column)
Setting up a time server requires the client to automatically synchronize the time of the server at 9 a.m. every day
Source code of new campus errand / campus task platform on mutual station
SPIE Western optoelectronics exhibition returned offline and successfully held a science and engineering event
Nielseniq found that 60% of the re launched products had poor returns
The method of real-time tracking the current price of London Silver
Batch export all pictures in PPT in one second
Data warehouse (3) star model and dimension modeling of data warehouse modeling
At present, where is the most formal and safe account opening for futures speculation? How to open a futures account?
PMP daily three questions (February 15, 2022)
徽商期货是正规期货平台吗?在徽商期货开户安全吗?
Leetcode problem solving series -- continuous positive sequence with sum as s (sliding window)
Blackwich: the roadmap of decarbonization is the first step to realize the equitable energy transformation in Asia
期货先锋这个软件正规吗安全吗?选择哪家期货公司更安全?
ZABBIX alarm execute remote command
Euler function: find the number of numbers less than or equal to N and coprime with n
Explain in detail the process of realizing Chinese text classification by CNN
Apache iceberg source code analysis: schema evolution