視覺 slame 十四講 === ## 2.4.3 使用 cmake 1. 安裝 cmake ``` sudo apt install cmake ``` 2. 建立程式碼文件 helloSLAM.cpp ``` #include <iostream> using namespace std; int main() { cout<<"hello slam"<<endl; return 0; } ``` 3. 建立CMakeLists CMakeLists.txt ``` cmake_minimum_required( VERSION 2.8 ) project( HelloSLAM ) add_executable(helloSLAM helloSLAM.cpp) ``` 4. cmake 生成makefile 6. make編譯 ## 2.4.4 使用庫
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up