C m a k e . l e a r n i n g . n o t e s \color{#FF3030}{Cmake.learning.notes} Cmake.learning.notes
chapter1
cmake 和makefile的關系
? cmake用于生成有效的makefile檔案
cmake嘗試
- 第一次嘗試
? G:\project_learning_space\camke\camke_test1
? Failed 2021-4-27;
? 嘗試了幾種cmake的指令.
-
參考文獻
?編譯helloworld//編譯一個helloworld
cmake指令速查//cmake 指令速查
執行方法 //執行方法
-
遇到的問題

configure 時出現報錯等情況 確認程序有效–確認代碼路徑與預期一致
-
代碼
CMAKE_MINIMUM_REQUIRED(VERSION 3.0) PROJECT(camke_test1) ADD_EXECUTABLE(camke_test1 main.c)#include<stdio.h> #include<stdlib.h> int main(){ printf("HEllo World!"); system("pause"); return 0; }cmake 三部曲
mkdir build && cd build cmake .. makewin版本
cmake.. //in the app try to make the configure but the decode is not such same //in app --minggw //in cmd --vs //reasonunknow cd /d ...~~ //enter the menu tree ...~~ //print the file menu tree遇到的問題–mingw32——gcc找不到路徑–待解決
make 指令可以用minggw32_makeexe 代替
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/281699.html
標籤:區塊鏈
上一篇:區塊鏈預言機(3)關鍵點說明
