Skip to content

RWTH-HPC/CMake-gitpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

CMake-gitpack

CMake 2.6 required

CMake module to enhance CPack with ignore patterns from .gitattributes.

Usage

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.

Contribute

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.

LICENSE

CMake-gitpack is licensed under a 3-clause-BSD license. See the LICENSE file for details.

© 2018 RWTH Aachen University, Federal Republic of Germany

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages