Ignore generated files.

This commit is contained in:
Victor Zverovich 2014-05-13 09:28:53 -07:00
parent 191c2011f2
commit cb389f9a09
2 changed files with 5 additions and 3 deletions

5
.gitignore vendored
View File

@ -3,14 +3,15 @@
/doc/doxyxml
/doc/html
/Testing
/*.cmake
/format-test
/*-test
/install_manifest.txt
/tinyformat_speed_test
*~
*.a
*.zip
cmake_install.cmake
CPack*Config.cmake
CTestTestfile.cmake
CMakeCache.txt
CMakeFiles
Makefile

View File

@ -182,10 +182,11 @@ if (EXISTS .gitignore)
file (STRINGS ".gitignore" lines)
LIST(REMOVE_ITEM lines /doc/html)
foreach (line ${lines})
string(REPLACE "." "[.]" line "${line}")
string(REPLACE "*" ".*" line "${line}")
set(ignored_files ${ignored_files} "${line}$" "${line}/")
endforeach ()
set(ignored_files ${ignored_files} /.git /breathe /format-benchmark /sphinx)
set(ignored_files ${ignored_files} /.git /breathe /format-benchmark sphinx/)
set(CPACK_SOURCE_GENERATOR ZIP)
set(CPACK_SOURCE_IGNORE_FILES ${ignored_files})