[CMake] Make dist?

Filipe Sousa filipe at ipb.pt
Wed May 3 18:25:55 EDT 2006


On Wednesday 03 May 2006 23:08, Craig Bradney wrote:
> On Wednesday 03 May 2006 23:46, Filipe Sousa wrote:
> > On Wednesday 03 May 2006 22:36, Craig Bradney wrote:
> > > Hi,
> > >
> > > Are there any examples of a autotools make dist replacement out there?
> > > Have people moved to a shell script instead or is there a cmake/make
> > > target possible?
> > >
> > > thanks
> > > Craig
> > > Scribus Team
> >
> > make package_source for source
> > make package for binaries
>
> Oh? Doesn't work here? CMake is CVS from yesterday.
>
> Craig
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake

Works here and you don't need the last version from CVS

fsousa at neptuno ~/build/lua $ make package
Run CPack packaging tool...
CPack: Install projects
CPack: - Run preinstall target for: Lua
CPack: - Install project: Lua
CPack: Compress package
CPack: Finalize package
CPack: Package /home/fsousa/build/lua/Lua-5.1.0-Linux.sh generated.
fsousa at neptuno ~/build/lua $ make package_source 
Run CPack packaging tool for source...
CPack: Install projects
CPack: - Install directory: /home/fsousa/projects/lua
CPack: Compress package
CPack: Finalize package
CPack: Package /home/fsousa/build/lua/Lua-5.1.0-Source.tar.gz generated.
fsousa at neptuno ~/build/lua $ cmake --version
cmake version 2.5-20060426

For this to work you have to add CPack support at the bottom of 
CMakeLists.txt. In my case I have:

#
# Packing stuff
#
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "The Programming Language Lua")
SET(CPACK_PACKAGE_VENDOR "Lua")
SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README")
SET(CPACK_PACKAGE_VERSION_MAJOR "5")
SET(CPACK_PACKAGE_VERSION_MINOR "1")
SET(CPACK_PACKAGE_VERSION_PATCH "0")
SET(CPACK_PACKAGE_EXECUTABLES "lua" "lua")
INCLUDE(CPack)

For a more comple example have a look at CMakeLists.txt of cmake:
http://public.kitware.com/cgi-bin/viewcvs.cgi/CMakeLists.txt?rev=1.104&root=CMake&view=markup

-- 
Filipe Sousa
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20060503/4c63948e/attachment.pgp


More information about the CMake mailing list