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
0
votes
0 answers

Ship gsl as a 3rd party dynamic library with a Debian package generated with CPack

I have a CMake project which depends on gsl >= 2.3 for which I would like to distribute a debian package on ubuntu/xenial. As gsl > 2.3 is not the version shipped with ubuntu/xenial, I can not use in that case the CPACK_DEBIAN_PACKAGE_SHLIBDEPS…
Eurydice
  • 8,001
  • 4
  • 24
  • 37
0
votes
1 answer

Remove suffix from cpack component

CPack has a bug described here where monolithic builds include the build-directory path in the md5sums file for DEB packages: https://gitlab.kitware.com/cmake/cmake/issues/16517 Since I'm using debian-stretch with CMake 3.7, the bug still exists…
Stewart
  • 4,356
  • 2
  • 27
  • 59
0
votes
1 answer

How can one modify CPack generated WiX XMLs using a patch file?

I am trying to add the functionality to uninstall a previous version before installing a new version of a certain installer. The CPackWIX documentation page (https://cmake.org/cmake/help/v3.3/module/CPackWIX.html) is not clear about how to use…
Iman
  • 21
  • 2
  • 4
0
votes
1 answer

CPack filelist conflicts with filesystem

I try to package my project written in C++ and using cmake as a build tool. I can create a rpm package but I can not install it. The error message is: file /usr/local from install of myapp.x86_64 conflicts with file from package…
Phạm Văn Thông
  • 743
  • 2
  • 7
  • 21
0
votes
0 answers

How to get location of external libraries in CMake?

I have a CMake project which build library with external dependencies: add_library(lib_name ${SRC}) target_link_libraries(lib_name ${DEPENDENCIES}) ${DEPENDENCIES} contains of dependencies which found by find_package(). After I want to install my…
J. Doe
  • 1
0
votes
1 answer

How to correct permissions for CPackDeb directories?

Given a CMakeLists.txt like: PROJECT(asdf NONE) CMAKE_MINIMUM_REQUIRED(VERSION 3.0) INSTALL(FILES CMakeLists.txt DESTINATION share/doc/asdf/whatever) SET(CPACK_GENERATOR "DEB") SET(CPACK_PACKAGE_CONTACT "asdf@example.com") INCLUDE(CPack) The…
jotik
  • 17,044
  • 13
  • 58
  • 123
0
votes
1 answer

WiX created msi file, strange major upgrade behaviour

I'm using WiX toolset to create my msi file from a C++ codebase with cmake and cpack. This setup works great for the past 6 months, but now i'm getting sporadic bad behaviour. My Setup uninstall older products with the same upgrade-code to guarantee…
Michael Aigner
  • 4,820
  • 4
  • 21
  • 33
0
votes
1 answer

How can I use bindpaths to create a WiX Patch?

I'm using cmake/cpack to build my project with WiX. cmake runs heat.exe (or something similar) which produces files.wxs that contains the files of my project in the following format: We'll assume a single file named a.txt inside a folder named…
0
votes
1 answer

How to install binaries to user's home directory by CPack?

I am trying to change package install prefix, with the goal to enable users of my application to install my app into their own directory. I attempted set(CPACK_PACKAGING_INSTALL_PREFIX "~/${CPACK_PACKAGE_NAME}") which results in error message file…
katang
  • 2,474
  • 5
  • 24
  • 48
0
votes
2 answers

One CMake Project to create two Debian packages

I have one CMake project which looks something like: -Project |--ApplicationA | |---main.cpp | |---CMakeLists.txt |--ApplicationB | |---main.cpp | |---CMakeLists.txt |--CMakeLists.txt Is there any possibility that I can run "make…
unikat
  • 341
  • 2
  • 5
  • 14
0
votes
1 answer

Can Cmake's Cpack package custom targets built by external build tools?

I have a cmake file generated by an external tool that is of this form: set(SOURCE_FILES ....) add_custom_target(target1 ${build_tool} param SOURCES ${SOURCE_FILES}) add_custom_target(target2 ${build_tool} param SOURCES ${SOURCE_FILES}) ... so…
user6335789
0
votes
1 answer

How to specify different folder structure for CPack TGZ generator?

I have a CMake project that installs things to a system according to the install command as follows: install ( TARGETS myTarget RUNTIME DESTINATION bin LIBRARY DESTINATION lib ) make install works perfectly. And then I want to have a…
Andy Li
  • 5,894
  • 6
  • 37
  • 47
0
votes
2 answers

CMake and CPack. Install path in config file

Is there a way to create install and package (I need a deb package) targets using CMake, where install path is read from some configuration file (e.g. /etc/myconfig.cfg) in install-time. I can do it using shell scripts, but I'd like to use CMake's…
Роман Коптев
  • 1,555
  • 1
  • 13
  • 35
0
votes
2 answers

'CPACK_RPM_PACKAGE_AUTOPROV' doesn't work when pack existing binaries with CPack

In my project, I use cmake to construct the building system, I need to build an external project(here, I take zeromq for example) with ExternalProject_add, then pack the compiled binaries in a RPM package, but I need the generated RPM to have…
Rex
  • 1
  • 1
0
votes
1 answer

CMake/CPack - Generate Debian Package Maintainer Scripts (postrm specifically)

My build "superbuilds" other projects, all of which may change at any time. It is far too tedious to manually create the postrm script every time we want to build... Is there a way to generate the postrm script when building a Debian package with…
primitivist
  • 805
  • 10
  • 18
1 2 3
21
22