Questions tagged [cpack]

CPack is a packing and install tool for CMake generated projects

CPack is develop by Kitware to generated a package (install file) from your CMake generated projects. It is, like CMake, multi platfom aware and used different generators for different platforms, e.g. NSIS for windows plattforms.

It is been shipped with your CMake installation.

The documents can be found here.

330 questions
5
votes
1 answer

cpack create zip without creating self named directory inside zip

I'm creating a zip with my target binary and header files that go with it. I'm trying to find a way to get this to work without creating a self-named folder inside the zip, and have the zip simply contain the target binary and header files at its…
xoorath
  • 425
  • 2
  • 15
5
votes
1 answer

Creating Multiple Debian Packages with cmake

I have a cmake project consisting of a set of executable files, independent of each other with two shared libraries. I want to pack each executable file into a deb package. As a result, I get one deb package with all programs and libs. part of the…
Zeta
  • 141
  • 7
5
votes
2 answers

How to change CPack package file name based on configuration?

In CMake, using CPack I want CPACK_PACKAGE_FILE_NAME to include -debug suffix in case the package is produced from Debug configuration. For single-configuration CMake generators this is probably doable by checking CMAKE_BUILD_TYPE, but this does not…
Paweł Bylica
  • 3,780
  • 1
  • 31
  • 44
5
votes
0 answers

Cpack install different files for different package formats

I have a cmake project that uses cpack to produce both a zip file and a debian package and I would like to be able to install different files for the two version of the packages. To be more specific, here is a sample CMake file that produces both a…
Jacopo
  • 1,031
  • 2
  • 12
  • 25
5
votes
1 answer

cmake: print messages from internal .cmake

I'm trying to debug a problem I got during a make package: CMake Error at /usr/local/Cellar/cmake/3.4.3/share/cmake/Modules/BundleUtilities.cmake:861 (message): error: fixup_bundle: not a valid bundle I've seen that there are some…
bibi
  • 3,671
  • 5
  • 34
  • 50
5
votes
0 answers

CMake/CPack: add_custom_command TARGET package POST_BUILD

Having the same problem as here described, I want to execute a shell script as a POST_BUILD command of TARGET "package". Target platform is Debian/Ubuntu. I add following to the end of my CMakeLists: add_custom_command( TARGET package …
Polybos
  • 51
  • 3
5
votes
1 answer

How to exclude files/dirs from CPack binary using CMake

I have a project structured like below: \build \deps \src CMakeLists.txt clean.cmake There are some library dependencies located in deps. All these libraries have CMake install command. After install, the output files will be put in build…
Madwyn
  • 409
  • 3
  • 13
5
votes
1 answer

CMake: Keep file permissions in deb package created with cpack?

I create a deb package with cpack but it is not keeping the original permissions on the target machine. This is causing the user of my application to be unable to execute it after install.
SteveDeFacto
  • 1,317
  • 4
  • 19
  • 35
5
votes
1 answer

Running fixup_bundle for a specific target (PACKAGE)

I would like to incorporate external dlls when running CPACK without enumerating all of them (by explicitly calling INSTALL(FILE ...) ) Employing fixup_bundle it is possible to fixup all the executables in the install folder (CMAKE_INSTALL_PREFIX)…
Pierluigi
  • 2,212
  • 1
  • 25
  • 39
5
votes
2 answers

Supporting multiple Boost versions in a Debian Package

I am trying to create a debian package for a project of mine, but have been running into issues with boost version support. I have indeed looked at this question. It is similar but the provided solutions (Build-Depends) are not really applicable to…
kelano
  • 293
  • 3
  • 14
5
votes
1 answer

Building both static and shared libs for LLVM libc++ 3.3

The latest LLVM libc++ 3.3 from SVN comes with a CMakeLists.txt. I am a CMake newbie, but yesterday I studied enough to be able to build libc++ check-out on a RHEL 6.4 x86_64 host. In addition, I was able to add enough CPack related commands in…
user183394
  • 1,033
  • 1
  • 11
  • 20
4
votes
2 answers

How do I add the RequestExecutionLevel option of NSIS to a CMakeLists.txt

I am trying to get an installer compiled with NSIS on Windows 7 to work without administrator privileges. The project is set up with CMake and compiled with VC2010. I have figured out that I have to use the RequestExecutionLevel user option. My…
Hans
  • 1,741
  • 3
  • 25
  • 38
4
votes
2 answers

Problems with cpack creating deb packages

I set CPACK_PACKAGE_CONTACT and CPACK_DEBIAN_PACKAGE_MAINTAINER in my main CMakeListst.txt. cmake itself runs an the created CPackConfig.cmake and CPackSourceConfig.cmake both contain the variables set. CPack still exits with CPack: Create package…
Andreas Löw
  • 1,002
  • 8
  • 15
4
votes
1 answer

Why doesn't asserting CPACK_DEBIAN_DEBUGINFO_PACKAGE result in a .ddeb file?

I'm attempting to use cpack to create .ddeb files (containing debug symbol info) for my cmake based project using set(CPACK_DEBIAN_DEBUGINFO_PACKAGE ON) and can't tell why I'm not getting a .ddeb file being produced alongside the .deb file that is…
user8819
  • 53
  • 6
4
votes
0 answers

put external project into a cPack

I try to setup a cMake project which create a package containing the output of multiple external projects. So the idea is, that I use this cMake project to create packages for the deployment. Now the problem is, that when I use the cMakeLists shown…
moudi
  • 478
  • 4
  • 17