[CMake] CPack question.

Akshay akshay.ranjan at gmail.com
Mon Sep 12 01:30:44 EDT 2011


Hello All,

I have recently ported my project software tree to CMake and I am pretty
happy about it. There is a last step which is proving quite elusive to me.
The targets that are built in the software tree are TGZ'd for final
distribution, however, CPack if run from the CMakeLists.txt file will pickup
only those targets which are installed by INSTALL command. I can't change
the directory structure for historical reasons. If I use INSTALL from the
individual directories' CMakeLists.txt, CPack from the main CMakeLists.txt
is not finding anything and generates an empty TGZ.

src
|- a
|- b
|- c
|- dt
|- proj
   |- CMakeLists.txt (main)
   |- build
|- e
   |- x
   |- y
   |- z

Akshay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110912/3eb144e0/attachment.htm>


More information about the CMake mailing list