[CMake] cpack help

Bill Hoffman bill.hoffman at kitware.com
Fri Nov 10 07:58:41 EST 2006


David Blado wrote:
>
> Hi All,
>
> I was hoping that someone here could help me out w/ cpack. I’ve copied 
> sample CMakeLists cpack section with no success. Every time I issue 
> make package the package comes out empty.
>
> I do have some INSTALL commands defined and they work perfectly fine 
> when I do ‘make install’
>
> I see the following:
>
> Run CPack packaging tool...
>
> CPack: Create package using TGZ
>
> CPack: Install projects
>
> CPack: - Run preinstall target for: test
>
> CPack: - Install project: test
>
> CPack: Compress package
>
> CPack: Finalize package
>
> CPack: Package 
> /home/dblado/dds4.1.3/Common2/TMClib/src/test-0.1.1-Linux.tar.gz 
> generated.
>
> But if I do tar ztvf on the file, it’s empty.
>
> Anyone have any hints or tips? I’ve tried w/ a basic ‘INCLUDE(CPack)’ 
> as well as specifying the options @ 
> http://www.cmake.org/Wiki/CMake:Packaging_With_CPack
>
> Any help would be greatly appreciated.
>

You need to work on install targets first. CPack only packs up what gets 
installed.
Look at INSTALL_*.

-Bill



More information about the CMake mailing list