CMake module to enhance CPack with ignore patterns from .gitattributes
.
To use GitPack.cmake, simply add this repository as git submodule into your own repository
mkdir externals
git submodule add git://github.com/RWTH-HPC/CMake-gitpack.git externals/CMake-gitpack
and add externals/cmake-gitpack/cmake
to your CMAKE_MODULE_PATH
:
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/externals/cmake-gitpack/cmake" ${CMAKE_MODULE_PATH})
If you don't use git or dislike submodules, just copy the GitPack.cmake file into your repository.
Now, simply switch from include(CPack)
to include(GitPack)
to automatically
use ignore patterns from .gitignores
in CPack. This also covers submodules.
Anyone is welcome to contribute. Simply fork this repository, make your changes in an own branch and create a pull-request for your changes. Please submit one change per pull-request only.
You found a bug? Please fill out an issue and include all data to reproduce the bug.
CMake-gitpack is licensed under a 3-clause-BSD license. See the LICENSE file for details.
© 2018 RWTH Aachen University, Federal Republic of Germany