Skip to content

tungchiahui/CMake_Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

中文 | English

  1. Project Name: CMake_Template_Project
  2. Version: v2.0
  3. State: Pre-Release
  4. Author: Tung Chia-hui
  5. Website: https://github.com/tungchiahui
  6. E-mail: [email protected]
  7. Organization: SDUT_EMIS_VinciRobot
  8. Date: 2023-03-20
  9. Future Features:
    1. Make_Log do not recorded.
    2. Add more things to the vinci_ emis script.
If there is an error when running and it says that some libraries are missing, please check if you have Eigen3 and OpenCV4.
For those who need to use scripts, please refer to the script folder.

How to build and run program instructions for the project

1. Regular command line operation

Function

  • CMake generates compiled files such as Makefiles.
  • MakeFiles generates bin, lib, and other files.
  • Load the lib environment and run the binary program.

Usage Method

  1. Build

    使用以下命令编译出二进制文件:

     # 请确认该脚本在build文件夹下运行
     cd build
     # 进行CMake
     cmake ..
     # 进行MakeFiles
     make install
    
    
    
  2. RUN

    使用以下命令运行二进制文件:

     # 请确认该脚本在build文件夹下运行
     cd build
     # 加载lib环境
     source ../install/.setup.bash
     # 运行二进制程序(demo1换成对应的二进制文件名)
     ../install/bin/demo1
    

2. VScode Task Launch

Function

  • Use VScode's powerful task function to easily perform one click tasks such as CMake, MakeFiles, loading lib environment, and running binary programs.
  • This method can be used for debugging.

Usage Method

  1. Click Run

    直接点击VScode的Run即可,注意,如果有报错,需要去log文件夹下查看对应的.log文件来寻找错误,或者打断点Debug。

3. Script Method

Fuction

  • 详见script文件夹下的Markdown。