A template for c++ projects
This is a template for creating c++ cmake projects with the canonical file structure. This project uses the clang-cmake extention, so it contains:
- GTest - google test
- Include What You Use
- Clang Tidy
- Clang Format
The project is built by the guidlines specified in the c++ canonical project structure.
To run ctest with check for memory leaks use:
ctest --overwrite MemoryCheckCommandOptions="--leak-check=full --error-exitcode=100" -T memcheck
NOTE that for some reason, in mingw gtest compiles only with posix mingw, not the win32 one. The flag gtest_disable_pthreads=ON should fix it, but for me it did not