No description
  • CMake 71.5%
  • C++ 28.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-05-01 23:31:33 -07:00
cmake Add Windows compatibility; this implementation untested. 2026-04-29 22:32:27 -07:00
include/hello Initial commit. Supports system/brew clang on Mac. 2026-03-30 09:41:04 -07:00
src Initial commit. Supports system/brew clang on Mac. 2026-03-30 09:41:04 -07:00
tests Rework tests directory structure to match rest of project 2026-05-01 23:31:33 -07:00
.clang-format Initial commit. Supports system/brew clang on Mac. 2026-03-30 09:41:04 -07:00
.clangd Initial commit. Supports system/brew clang on Mac. 2026-03-30 09:41:04 -07:00
.gitignore Initial commit. Supports system/brew clang on Mac. 2026-03-30 09:41:04 -07:00
CMakeLists.txt Initial commit. Supports system/brew clang on Mac. 2026-03-30 09:41:04 -07:00
CMakePresets.json Use toolchainFile field instead of cache variable 2026-05-01 22:26:21 -07:00
README.md Add Windows compatibility; this implementation untested. 2026-04-29 22:32:27 -07:00
vcpkg-configuration.json Add Windows compatibility; this implementation untested. 2026-04-29 22:32:27 -07:00
vcpkg.json Initial commit. Supports system/brew clang on Mac. 2026-03-30 09:41:04 -07:00

Starter C++ template with a clang and vcpkg focus

This repo serves as a starting point for small to medium C++ projects that want to use clang tooling and the vcpkg package manager. It will be up to the user to ensure the tooling is installed correctly.

The toolchain

  • Compiler: clang++
  • Standard library: libc++ (except Windows)
  • Linker: lld
  • Build system: cmake
  • Generator: Ninja-MultiConfig

Ensure these are all installed. Special care is really only needed for Linux systems.

Special notes about Windows

The presets are written to expect a winget-installed LLVM, an active dev environment, and the environment variable VCPKG_ROOT pointing to a local install and not Visual Studio's. Compatibility with clang-cl was attempted and it did not go well.