Best CMake Open Source Repositories

The best open source repositories built with CMake.

Ege Beşe's profile

Written by Ege Beşe

Favicon

 

  
  
Favicon

 

  
  
Favicon

 

  
  
Favicon

 

  
  
Favicon

 

  
  
Favicon

 

  
  

CMake is a build system generator, not a compiler or a build tool itself. Projects write a CMakeLists.txt file describing their source files, dependencies, and build targets in CMake's own scripting language, and CMake then generates native build files for whatever toolchain the developer is using, whether that's Makefiles on Linux, Ninja files, Xcode projects on macOS, or Visual Studio solutions on Windows. This separation lets a single project definition produce working builds across very different platforms and compilers without maintaining separate build configurations for each one.

CMake is the de facto standard for C and C++ projects that need to support multiple operating systems and compilers, which is most of them. It handles dependency discovery through its find_package mechanism, manages compiler flags and build configurations like Debug and Release, and integrates with package managers like vcpkg and Conan for pulling in third-party libraries. Its scripting language has a reputation for being unintuitive, and many teams wrap it in higher-level tooling or stick to a narrow subset of its features to keep configuration files manageable.

Because C and C++ projects dominate systems programming, machine learning infrastructure, and native applications, CMake shows up across a wide range of open-source software with native components. Repos on this page using CMake include PyTorch and vLLM, both of which compile substantial C++ and CUDA code across multiple platforms, and OBS Studio, which uses CMake to manage its cross-platform video capture and rendering pipeline.

Frequently asked questions

Share: