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 ...
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...
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...
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...
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...
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?
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...
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...
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...
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). ...
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...
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...
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 ...
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...
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...
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...
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...
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 ...
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...
1 Next >
© 2022 - 2025 — McMap. All rights reserved.