[Cmake] packaging source

Brad King brad.king at kitware.com
Thu May 29 10:01:55 EDT 2003


> 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




More information about the CMake mailing list