Skip to content
devops12 regras ativasVerificado em 2026-09-30

CMake Modelo de .gitignore

CMake generated build directories, cache files (CMakeCache.txt), and rules. Gerado e mesclado de forma determinística com os padrões oficiais do GitHub para manter seu repositório livre de pastas de pacotes, artefatos de compilação e arquivos de ambiente local.

Gerador interativo de stack

Abrir no gerador completo
Search for templates
Adicionar rápido:
Selecionados1
CMake
Modelos selecionados (1)
.gitignore
12 regras
### CMake ###
CMakeLists.txt.user
CMakeCache.txt
CMakeFiles
CMakeScripts
Testing
Makefile
cmake_install.cmake
install_manifest.txt
compile_commands.json
CTestTestfile.cmake
_deps
CMakeUserPresets.json
# CLion
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#cmake-build-*
21 linhas•UTF-8
Pipeline Determinístico

Código bruto de CMake .gitignore

Modelo oficial original rastreável
cmake.gitignore•20 lines•UTF-8
CMakeLists.txt.user
CMakeCache.txt
CMakeFiles
CMakeScripts
Testing
Makefile
cmake_install.cmake
install_manifest.txt
compile_commands.json
CTestTestfile.cmake
_deps
CMakeUserPresets.json
# CLion
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#cmake-build-*

Detalhamento de padrões essenciais

Cache e arquivos temporários

Ignora caches de compiladores, dados de cobertura de testes e arquivos de rascunho temporários.

CMakeCache.txt

Origem e verificação

Licença:: CC0-1.0

Coloque este arquivo na raiz do seu projeto com o nome .gitignore. As alterações passam a valer para arquivos novos ou não rastreados.