[Cmake] packaging source

Brad King brad . king at kitware . com
Thu, 29 May 2003 10:01:55 -0400 (EDT)


> Is there a way of packaging all the code in a cmake project. Something
> like the "make dist" command which is available with gnu
> autoconf/automake tools.

What exactly does "make dist" do?  Tar up the source tree?  CMake does not
support this directly.  You can try something like this:

IF(UNIX)
  ADD_CUSTOM_TARGET(dist ${PROJECT_SOURCE_DIR}/package.sh)
ENDIF(UNIX)

This will add "dist" as a makefile target that runs package.sh, which can
do whatever packaging you want.

-Brad