Re: [CMake] cpack -G DEB for subdirectories
You may want to use custom CPack scripts for different purposes. By default, CPack uses script generated by CMake in top-level directory, but you can write your own one (and as many as you want) and pass it to cpack as command line parameter. Of course, install components could be great help in packaging. I take it you're talking about the '--config' option. That sounds like a workaround if it's possible to use/include some globals to reduce the overhead. ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
[CMake] cpack -G DEB for subdirectories
Hello I seem not able to find an example of how to generate .deb files with cpack for different subdirectories of a project. Is this possible and if so, how? ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] cpack -G DEB for subdirectories
2009/1/30 BlinkEye gen...@blinkeye.ch: Hello I seem not able to find an example of how to generate .deb files with cpack for different subdirectories of a project. Is this possible and if so, how? As far as I know CPack only handles a single per-project package, i.e. you may easilly build a package (deb, rpm, tgz etc...) for the WHOLE project, even if the project does have subdirectories. CPack will package all target, files etc... which are INSTALL(TARGET ... INSTALL(FILES ... etc... There is a possibility to use the COMPONENT feature: http://www.cmake.org/Wiki/CMake:Component_Install_With_CPack, in order to build different package using different CMake build options but as far as I know DEB generator does not currently handle COMPONENT: http://www.cmake.org/Wiki/CMake:Component_Install_With_CPack#Ideas_for_Future_Development So if you want a single deb package you may add whatever needed INSTALL command in every subdirectory you want and it should work. If you want several deb I would say you either need to split your project in several projects or submit a patch for the DEB generator :-) -- Erk ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] cpack -G DEB for subdirectories
On Fri, January 30, 2009 14:37, Eric Noulard wrote: As far as I know CPack only handles a single per-project package, i.e. you may easilly build a package (deb, rpm, tgz etc...) for the WHOLE project, even if the project does have subdirectories. CPack will package all target, files etc... which are Thanks for elaborating and answering my question. I'm actually trying to generate different .deb files for a single project (e.g. for different libraries, executables). Checking out your links it looks like this is not possible at the moment. ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] cpack -G DEB for subdirectories
On Fri, Jan 30, 2009 at 5:11 PM, BlinkEye gen...@blinkeye.ch wrote: On Fri, January 30, 2009 14:37, Eric Noulard wrote: As far as I know CPack only handles a single per-project package, i.e. you may easilly build a package (deb, rpm, tgz etc...) for the WHOLE project, even if the project does have subdirectories. CPack will package all target, files etc... which are Thanks for elaborating and answering my question. I'm actually trying to generate different .deb files for a single project (e.g. for different libraries, executables). Checking out your links it looks like this is not possible at the moment. You may want to use custom CPack scripts for different purposes. By default, CPack uses script generated by CMake in top-level directory, but you can write your own one (and as many as you want) and pass it to cpack as command line parameter. Of course, install components could be great help in packaging. ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake