Re: [CMake] CPack Generator jar support

2011-11-10 Thread Eric Noulard
2011/11/10 Alexander Broekhuis : > > >> By the way did you suppress the INSTALL rule concerning the MANIFEST >> you may have had before? > > Yes, this is what I tried. CMake seems to make an intermediate directory > which is zipped. So the order of the INSTALL/CPACK_INSTALLED_DIRECTORIES > doesn't

Re: [CMake] CPack Generator jar support

2011-11-10 Thread Alexander Broekhuis
By the way did you suppress the INSTALL rule concerning the MANIFEST > you may have had before? > Yes, this is what I tried. CMake seems to make an intermediate directory which is zipped. So the order of the INSTALL/CPACK_INSTALLED_DIRECTORIES doesn't seem to have an impact. > I bet the safest w

Re: [CMake] CPack Generator jar support

2011-11-09 Thread Eric Noulard
2011/11/9 Alexander Broekhuis : > Hi Eric, >>> >>> By the way did you try the ZIP generator with >>> >>> set(CPACK_INSTALLED_DIRECTORIES "/path/to/META-INF;/META-INF") >>> >>> if some local (to the build) directory /path/to/META-INF contains >>> the appropriate MANIFEST.MF and INDEX.LIST your jar s

Re: [CMake] CPack Generator jar support

2011-11-09 Thread Alexander Broekhuis
Hi Eric, >> By the way did you try the ZIP generator with >> >> set(CPACK_INSTALLED_DIRECTORIES "/path/to/META-INF;/META-INF") >> >> if some local (to the build) directory /path/to/META-INF contains >> the appropriate MANIFEST.MF and INDEX.LIST your jar should be built ok >> beside the fact it wi

Re: [CMake] CPack Generator jar support

2011-11-09 Thread Eric Noulard
2011/11/9 David Cole : > Adding a generator will require C++ modifications to the CPack code... but knowing that a jar file is a zip file subclassing cmCPackArchiveGenerator.[h|cxx] to cmCPackJARGenerator.[h|cxx] in the same way cmCPackZIPGenerator does should be fairly straightforward. Then you

Re: [CMake] CPack Generator jar support

2011-11-09 Thread David Cole
Adding a generator will require C++ modifications to the CPack code... On Wed, Nov 9, 2011 at 2:31 PM, Alexander Broekhuis wrote: > Hi all, > It is possible to add a custom generator to cpack? > What I'd like to have is a generator for Jar files. I know a jar file is > basically the same as a zi

[CMake] CPack Generator jar support

2011-11-09 Thread Alexander Broekhuis
Hi all, It is possible to add a custom generator to cpack? What I'd like to have is a generator for Jar files. I know a jar file is basically the same as a zip file, but there is one distinct difference, the Manifest directory is always at the start of the file. For a specific solution I am work