On Wed, 2008-08-13 at 22:41 +0200, Tejas Guruswamy wrote: > I've just checked in modifications to CMakeLists.txt that enable > cpack. Everything in that file is pretty self-explanatory, the > documentation on the cmake wiki covers most stuff. > The procedure for using cpack is as follows: > > In a separate BUILD_DIR (anywhere on your system, one of the main > ideas behind cmake is out-of-source builds) > this should ideally NOT be a subdirectory of the source dir, as > otherwise build files get mixed with source files. > cmake {whatever cmake flags you want, none really necessary for just > making the tarball as it will be rerun later anyway} $SOURCE_DIR > > then: > make package > will make binary packages, everything from windows installers to > self-extracting tgz to Mac packages is available out-of-the-box from > cpack > or > make package_source > will make a source tarball. The format is in the CMakeLists.txt > file as CPACK_SOURCE_GENERATOR; right now tar.gz and tar.bz2 are on. > All it really does is compress and rename the source dir. As I > understand it unlike with autotools there is nothing to actually do > before distribution. The disadvantage is that end-users must have also > have cmake installed. > > The end-user then has to decompress the source, run cmake (again, an > out-of-source build is possible), then make && make install. > > Tejas Guruswamy >
Nice one ! I know we've already had the name conversation, but I was just thinking maybe it should be kio-rapip-kde4 instead of kde4-kio-rapip, and should the package actually be synce-kio-rapip-kde4 ? Mark > Mark Ellis wrote: > > > I added support for CMake to jhbuild a while ago, and when needing to > > > do a "./configure && make dist" for a cmake build system, jhbuild > > > would issue: > > > > > > cmake -DCMAKE_INSTALL_PREFIX=/usr > > > make package_source > > > > > > Doubt that the prefix thing is strictly neccesary, but i never got > > > round to trying it without. > > > > > > > Thanks John, that's a step in the right direction. I can now build a > > source package, it just doesn't build :( Something to do with having the > > correct cpack directives I think. > > > > Mark > >
signature.asc
Description: This is a digitally signed message part
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ SynCE-Devel mailing list SynCE-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synce-devel