Skip to content

Commit

Permalink
Merge branch 'cpack' of https://github.com/rdelfin/libsegwayrmp into …
Browse files Browse the repository at this point in the history
…cpack
  • Loading branch information
jack-oquin committed Feb 5, 2018
2 parents 73bc51f + bdb43dc commit 195acc9
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
[![Build Status](https://secure.travis-ci.org/segwayrmp/libsegwayrmp.png?branch=master)](http://travis-ci.org/segwayrmp/libsegwayrmp)

http://segwayrmp.github.com/libsegwayrmp/

## Debian Package generation (utexas-bwi)

To generate a Debian package (.deb), enter the directory of this repo and run:

```bash
mkdir build
cd build
cmake ..
make
cpack DEB
```

This will generate a file called `segwayrmp-$VERSION-$SYSTEM.deb` in the build
folder, where `$VERSION` is the version of libsegwayrmp being built and
`$SYSTEM` is the system this package is build for (i.e. ``).
17 changes: 17 additions & 0 deletions cmake/segwayrmp_targets.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,20 @@ else(UNIX)
TARGET uninstall
)
endif(UNIX)


######################
####### CPACK ########
######################

SET(CPACK_GENERATOR "DEB")
SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "Piyush Khandelwal <piyushk@gmail.com>")
SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README.md")
SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE")

SET(CPACK_PACKAGE_VERSION_MAJOR ${segwayrmp_VERSION_MAJOR})
SET(CPACK_PACKAGE_VERSION_MINOR ${segwayrmp_VERSION_MINOR})
SET(CPACK_PACKAGE_VERSION_PATCH ${segwayrmp_VERSION_PATCH})
SET(CPACK_PACKAGE_VERSION ${segwayrmp_VERSION})

INCLUDE(CPack)

0 comments on commit 195acc9

Please sign in to comment.