Skip to content

Commit c6043cd

Browse files
Add .gitignore for C++ and CMake projects
- Generated `.gitignore` using Toptal's template for C++ and CMake. - Includes rules for object files, libraries, executables, CMake-generated files, and build directories.
1 parent 14671d2 commit c6043cd

1 file changed

Lines changed: 61 additions & 0 deletions

File tree

CPlusPlus/.gitignore

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Created by https://www.toptal.com/developers/gitignore/api/c++,cmake
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=c++,cmake
3+
4+
### C++ ###
5+
# Prerequisites
6+
*.d
7+
8+
# Compiled Object files
9+
*.slo
10+
*.lo
11+
*.o
12+
*.obj
13+
14+
# Precompiled Headers
15+
*.gch
16+
*.pch
17+
18+
# Compiled Dynamic libraries
19+
*.so
20+
*.dylib
21+
*.dll
22+
23+
# Fortran module files
24+
*.mod
25+
*.smod
26+
27+
# Compiled Static libraries
28+
*.lai
29+
*.la
30+
*.a
31+
*.lib
32+
33+
# Executables
34+
*.exe
35+
*.out
36+
*.app
37+
38+
### CMake ###
39+
CMakeLists.txt.user
40+
CMakeCache.txt
41+
CMakeFiles
42+
CMakeScripts
43+
Testing
44+
Makefile
45+
cmake_install.cmake
46+
install_manifest.txt
47+
compile_commands.json
48+
CTestTestfile.cmake
49+
_deps
50+
51+
### CMake Patch ###
52+
CMakeUserPresets.json
53+
54+
# External projects
55+
*-prefix/
56+
57+
# End of https://www.toptal.com/developers/gitignore/api/c++,cmake
58+
59+
build
60+
61+
cmake-*

0 commit comments

Comments
 (0)