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
1 answer

How can I try a Cygwin package that I just created?

I'm a maintainer of a program that I'd might like to propose for inclusion in the Cygwin distribution. We use CMake so there is a packager available, and it's easy to create a .bz2 package. Once I've created the package, how can I try it locally? In…
thoni56
  • 3,145
  • 3
  • 31
  • 49
0
votes
2 answers

run a script after deb package is created with cpack

I am trying to create a deb package using cpack. But due to a bug in cpack it is creating file 'md5sums' with wrong permissions and i am getting a warning when installing the deb package using software center. I have a script which will change the…
Nithin
  • 5,470
  • 37
  • 44
0
votes
1 answer

Cpack headers folder destination

I need to locate all headers from my library not to /usr/include but /usr/include/mylibname . Please notice that I want to change location of headers. My .so file I want to keep in /usr/lib folder I tried this: How to change package destination…
Alex
  • 31
  • 2
0
votes
2 answers

Marking files as config files in CPack

When creating RPM packages: How do I tell CPack to treat a file as config file so it won't get overridden when updating the RPM? The %config directive is used in rpm-spec for that case. Is there something like this in CPack?
Volker
  • 97
  • 4
0
votes
1 answer

CPack: "make package" generates an empty deb package

I'm using the combination of CMake and CPack to generate a package. This is the CPack part of my CMake file: set(CPACK_GENERATOR "DEB") SET(CPACK_PACKAGE_VENDOR "Company") set(CPACK_COMPONENTS_ALL exe link configs lastversion script log…
B Faley
  • 17,120
  • 43
  • 133
  • 223
0
votes
2 answers

Cmake/cpack: how to create a libc++ static library deb without headers?

I have been trying to create a deb for LLVM libc++ 3.4 on a Ubuntu 12.04LTS 64bit box tonight. I would like to first create a deb that just consists of just /usr/lib64/libc++.a without any headers. Yes, I know per Debian library packaging guide, I…
user183394
  • 1,033
  • 1
  • 11
  • 20
0
votes
1 answer

CPACK embed text files

I want to distribute a gzipped tarball containing a program binary. No problem making a package containing the binary plus additional script/man files because these are files I install with CMake INSTALL command during a source installation. While…
user378147
0
votes
1 answer

Cannot generate build files for MySQL Connector/C 6.0.2 with CMake 2.8.10.2

I get the following two errors when I try to generate the Visual Studio 2010 build files for MySQL Connector/C 6.0.2 with CMake 2.8.10.2 on Windows 7 x64. CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CPack.cmake:395…
Robert Hegner
  • 9,014
  • 7
  • 62
  • 98
0
votes
1 answer

How to add a changelog to an RPM created with CPack

In a typical spec file there is a changelog section. I now use CPack and was wondering how to add such a section. I can't find information about that on the web. Could I use an external file and indicate it to CPack for example ?
Barth
  • 15,135
  • 20
  • 70
  • 105
0
votes
1 answer

Debian package bug on squeeze?

My hand-made debian package wont install if i build it on Squeeze (well, a squeezechroot)? If i built it on a wheezy box though it builds installable packages. Note that it builds fine in either case. Im generating the debian packages using…
James Bennet
  • 603
  • 2
  • 10
  • 22
-1
votes
1 answer

CPack to create Nuget package

CPack: Create package CPack Verbose: Package files to: /home/testsystem//build/_CPack_Packages/Linux/NuGet/MyModule.Linux.x86_64.nupkg Attempting to build package from 'CPack.NuGet.nuspec'. Cannot create a package that has no…
Goresh
  • 31
  • 7
-1
votes
1 answer

How do I change the formatting of the license agreement in a dmg file using CPack?

I am using CPack to create a dmg file for installation on MacOS. Because I have provided CPACK_RESOURCE_FILE_LICENSE the license file is included in the dmg file and a window is opened when trying to mount it. After clicking "Agree", I can drag and…
chiasmos
  • 110
  • 7
-1
votes
1 answer

setting environmental variables system wide from /etc/profile.d from postinstall script of Cpack deb installer without reboot?

currently i have a deb installer, built with Cmake->Cpack, that runs a postinst script, which calls another script to in /etc/profile.d that sets a few environmental variables to allow our application to run. the issue is after installing, it…
-1
votes
1 answer

Correct way to exclude files from source tar ball using CPack

When configuring cpack I would like to not include a few files that are in the source directory when running make package_source, everything works fine when using CPACK_SOURCE_IGNORE_FILES I get the correctly generated source package with the file…
Shane
  • 657
  • 6
  • 21
-1
votes
1 answer

Add -D options in the CPacCKConfig.cmake

I would like to know if when we create a Cpack-NSIS installer WITHOUT CMake, we can add -D options. For example: in CMAKE: cmake -DPRODUCT=MyProduct --build ... in CPACK : cpack.exe' -DPRODUCT=MyProduct -C Release --config CPackConfig.cmake Thanks…
sovif
  • 43
  • 1
  • 8
1 2 3
21
22