gitignore: Ignore more build system products

Ignore static libraries, cmake products, generated code and unit test
binaries.

Some extra care must be taken not to ignore more than intended when ignoring
the *_UnitTests. There is no way to directly express a path-neutral "only
ignore files with this pattern, not directories" in a single gitignore
pattern, but it can be expressed as "ignore everything containing this pattern
except directories".
This commit is contained in:
Torstein Hegge 2013-03-14 19:49:04 +01:00
parent 8c999fc481
commit 7b0b923d80
2 changed files with 11 additions and 0 deletions

8
.gitignore vendored
View File

@ -4,6 +4,7 @@
# compiler output
*.o
*.a
# Octave plugins (compiled)
*.oct
@ -21,6 +22,13 @@ CMakeFiles/
CMakeCache.txt
/Generated/
*.qrc.depends
cmake_install.cmake
CPack*.cmake
CTest*.cmake
#Unit test binaries
*_UnitTests
!*_UnitTests/
# Target program
/ApplicationCode/ResInsight

3
ThirdParty/Ert/devel/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
/lib/
ert_build_config.h
*_vector.[ch]