{"repo":"Challanger524/template-cpp","free":true,"listed":false,"github":"https://github.com/Challanger524/template-cpp","clone":"git clone https://github.com/Challanger524/template-cpp.git","description":"Clean C++ CMake Ninja VSCode template","language":"C++","stars":12,"topics":["cmake","cmake-presets","cpp","cpp23","pch","precompiled-header","template","vscode","vscode-settings","rebase-warning"],"license":null,"category":"saas-starters-boilerplates","readme_excerpt":"Template C++ CMake С++ CMake CMakePresets Ninja EditorConfig VS Code PCH app Feel free to pick any part or snippet you find interesting. - CMakeLists.txt - CMake overview - decent examples and information source - CMakePresets.json - build configure presets used in CMakeLists.txt via cacheVariables - msvc-dbg : MSVC - debug - gcc-dbg : GCC - debug - clang-dbg : Clang - debug - some conditional presets with sanitizers (like: gcc-san , clang-san-addr , clang-san-mem ) - src/ - place for project' source .cpp files that are recursively globbed in CMakeLists.txt:26 - config.hpp - (optional) precompiled header with source-wide C++ defines - .code-workspace - useful VS Code settings Branches (diff): Compare branches: https://github.com/Challanger524/template-cpp/compare - std/c++ gnu++ (?) GitHub compares for branch names with slash / may be ill-formed, as shown in (?) link Other C++ examples Remark: I did not find any sane and useful C++ starting templates - they simply don't exist. For comparison, just take a look on what Golang community pulled out: - Organizing a Go module - official golang project layout guideline - https://github.com/golang-standards/project-layout - big detailed repo and layout showcase - https://github.com/evrone/go-clean-template - same + readme contains pretty images Projects and libraries (unfinished section) Since there no useful templates outside - real projects are the only source of examples. - https://github.com/nlohmann/json - Lib json c++ readme.md","default_branch":null,"files":null,"tree":[],"storefront":"/r/Challanger524","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Challanger524/template-cpp/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}