- cmake
- googletest
- visual studio code
sudo apt-get install cmake g++ gdb
git clone --depth=1 https://github.com/google/googletest.git
cd googletest
mkdir build
cd build
cmake ..
make
sudo make install
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | sudo apt-key add -
sudo apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main'
sudo apt-get update
sudo apt-get upgrade
使用ext install ms-vscode.cpptools
安装Microsoft C/C++ 插件
使用ext install twxs.cmake
安装CMake 语言插件
使用ext install ms-vscode.cmake-tools
安装CMake 工具插件
使用>cmake: Configure
生成编译命令
执行>Cmake: Run Tests
测试代码。
ulimit -c unlimited
sudo sysctl -w kernel.core_pattern=core.%e.%p