CMake Snippet Generator
Select target type and settings to get a CMakeLists.txt snippet for your C/C++ project.
Configure
Output
Summary
Select target type and settings to get a CMakeLists.txt snippet for your C/C++ project.
How it works
- Choose target type (executable, shared lib, static lib)
- Enter target name and source files
- Add linked libraries
- Copy the CMake snippet
Use cases
- Bootstrapping new C++ project builds
- Adding find_package calls for third-party libraries
- Generating install() rules for packaging
Frequently Asked Questions
Last updated: 2026-06-09 ·
Reviewed by Nham Vu