[CMake] Changing directory layout with Cpack ?

Stephen Collyer scollyer at netspinner.co.uk
Wed Nov 28 15:00:26 EST 2007


I have a build tree set up like this:

src/<subdirs>
builds/linux
builds/win32
install/linux/bin
install/linux/lib
install/win32

where all the source code lives under src, I do out-of-source
builds under builds, and I install built objects into install/linux
and install/win32.

Now I want to package this up using Cpack, but I want the linux
package to end up with top level dirs

<project>/bin/<executable files>
<project>/lib/<libraries>

and the win32 builds to end up with

<project>/<executable files and libraries>

i.e. I want to remove the install/linux and install/win32
parts of the tree. Is this possible using some combination
of INSTALL and Cpack ? I can't see how at the moment.

-- 
Regards

Steve Collyer
Netspinner Ltd


More information about the CMake mailing list