[CMake] using CPack

Javier Gonzalez javierggt at yahoo.com
Tue Sep 25 21:14:58 EDT 2007


Hi all,

I just started using cmake and it seems I can't figure out how to use
CPack. The documentation in the wiki page didn't help much.

I can do make, make install and it all works all right but if I do make
package I get and empty package (a tar ball with nothing in it). Also,
if I do make package_source the thing goes and compresses everything.
This last thing is not what I expected. I somehow expected to see only
the sources needed for the targets and that I would have to explicitly
say what to add on top of the required sources.

Obviously I have misunderstood the thing completely. For reference, this
is what I added to my CMakeLists.txt:

SET(CPACK_PACKAGE_VENDOR "JGT")
SET(CPACK_PACKAGE_VERSION_MAJOR "1")
SET(CPACK_PACKAGE_VERSION_MINOR "0")
SET(CPACK_PACKAGE_VERSION_PATCH "0")
INCLUDE(CPack)

What else do I have to add to get something in the package?
What do I do to select the things that should go into the source tarball?

cheers,

Javier



More information about the CMake mailing list