cpack Questions

3

Solved

I would like to rename the installer file that CPack (v2.8.7) produces to include a version number that is obtained at build time from the version control system. It appears this cannot be be done ...
Needlefish asked 8/3, 2012 at 4:48

3

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 do...
Arius asked 24/5, 2017 at 9:1

4

Solved

I've been building RPMs using CMake & CPack 3.13.4 on OEL7 for several months without issue. My CMake configuration contained these lines: SET(CMAKE_SKIP_BUILD_RPATH FALSE) SET(CMAKE_BUILD_WIT...
Blus asked 14/10, 2019 at 8:29

2

Solved

The documentation for CPACK_PACKAGE_ICON is very limited on cmake wiki page. The following is not working for me (as per): set(CPACK_PACKAGE_ICON "${CMAKE_CURRENT_SOURCE_DIR}/images/MyIcon.bmp...
Sanjiv asked 27/2, 2015 at 15:20

1

I use CMake add_custom_command(TARGET POST_BUILD COMMAND codesign ...) for signing executable files on build. It works fine, but when CPack generates package it rewrites rpath on executable fil...
Competitive asked 19/10, 2018 at 14:37

1

Been looking for this but cannot find an example or good doc. Does anyone have an example of how to create a brew package using cpack from cmake?
Pedicle asked 12/4, 2019 at 15:48

2

According to FAQ, CMake doesn't create a make dist target and source package can be created using CPack. But CPack just makes a tarball of the source directory with all files that don't match patte...
Gaptoothed asked 8/3, 2012 at 21:47

6

Solved

tl;dr version: Is it possible with CMake (>= 2.8) to generate zip files from some files and put the packed zip file in a specific location? longer version: I have a CMakeLists.txt that builds my...
Cocklebur asked 13/8, 2011 at 14:22

1

I have recently started learning meson and I am testing switching to it (from CMake) in one of my projects. The problem is that I usually use cpack to build the project's packages/installers, and a...
Eisegesis asked 2/2, 2020 at 15:11

1

Solved

I am porting some packages from Linux to windows and I've found that visual studio has quite good integration with cmake. I am able to configure and build the project using cmake but I cannot figu...
Norford asked 8/1, 2020 at 12:31

0

I'm new to Debian packaging and I believe this is a fairly basic question, but I am embarrassed to say I've struck out on Google. I have a C++ project which builds with CMake and packages a debian...
Trilbee asked 12/11, 2019 at 17:39

2

Solved

Is there any way to know programmatically (in CMake) what files will be installed if a COMPONENT is installed (something like a get_property of component)? Currently, I am installing a COMPONENT t...
Freezedrying asked 18/9, 2014 at 4:14

1

I have a CMake project composed of one root CMakeLists and multiple sub-CMakeLists (one for each project). I am trying to use CPack to generate a .deb file for one of these projects (APP_client). ...
Curly asked 18/4, 2016 at 9:21

1

I have a fairly complicated project that builds using CMake. The project uses CPack to generate .deb packages. When I just build the project with make (i.e. not building a .deb) a clean build takes...
Dwanadwane asked 9/2, 2018 at 17:40

2

I'm using the CPack WIX generator to create an installer. The installer needs to install a file in a %ALLUSERSPROFILE%\foo\ folder on the target system. I can't find a way to install files outside...
Feverish asked 16/5, 2018 at 5:39

1

Solved

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 ...
Cult asked 23/1, 2019 at 16:54

1

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 d...
Candidacandidacy asked 23/11, 2018 at 15:21

1

I have a CMake project to build multiple shared libraries and tools, most of these under subdirectories: add_directory(libFirst) add_directory(libSecond) add_directory(myTool) # etc... The insta...
Falconiform asked 6/7, 2017 at 14:20

3

Solved

I'm using CMake for a project and googletest for my test cases. Looking around the internet, it seems to be common practise to just copy the googletest source into a subfolder of your repository an...
Vacuum asked 11/2, 2016 at 16:1

2

Solved

I have a project that builds several executables and also installs them. For the executables the relevant CMake code is: add_executable(foo "foo.cpp") add_executable(bar "bar.cpp;qux.cpp") install...
Gavial asked 1/9, 2017 at 14:57

1

I have a simple QT project. I'm developing on Linux. But it's meant to be deployed to Linux, Mac and Windows ultimately. I'm attempting to package it for distribution. I'm running into problems l...
Hydrops asked 31/8, 2016 at 22:30

1

CentOS6.9 / cmake 3.6.1 On my project I'm trying to create several components, than build runtime, devel and debuginfo packages for them, but I was unable to produce more than one rpm for each com...
Illbred asked 1/3, 2018 at 1:26

3

Summary: How to generate Wix installer with CMake/CPack? Details: I am trying to generate an installer out from a project that uses Wix, but apparently, cmake/cpack insist to use nsis, for exam...
Welter asked 20/4, 2015 at 17:30

4

Solved

I have a cmake project which one of the install targets is a collection of files. This files change depending on the configuration (Release, Debug...). I would like to be able to install the files ...
Aspinwall asked 26/2, 2016 at 8:44

1

Solved

I want to distribute executables and libraries of a C/C++ project on Linux, OSX and Windows. What are the preferred CPack generators, i.e. which are likely to be available for most users? On Window...
Phasis asked 2/9, 2017 at 7:16

© 2022 - 2025 — McMap. All rights reserved.