Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added cpack support to libsegwayrmp #1

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
@@ -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)