Starting point for a C++ Project with Gmock/Gtest for unit tests and Cmake for configuration.
git clone https://github.com/fullerth/GmockSetup.git
cd GmockSetup
mkdir build && cd build
cmake ..
make
ctest
Build this project with a cross compiler by passing the -DCMAKE_TOOLCHAIN_FILE option to Cmake. The example toolchain file shows my setup for a Raspberry Pi target.