I'm trying to find out a way to generate multiple packages from a big project. There are some patches and hack available but I'm not experienced cmake user and I can not figure out how to use them.
IMHO, an add_package command can be usefull instead of configuring cpack variables and including cpack module. For example; I have created a library and I want to distribute it. But there is two type of distribution that I have to create. In the first distributions I include libraries, sample programs, runtime executives and documentation. In the other distribution, in addition to the components in the first distribution, I also want to include source files. So a script like; add_package(LibraryDistro COMPONENTS/GROUPS/TARGETS LibA LibB Runtime SampleA SampleB) add_package(FullDistro COMPONENTS/GROUPS/TARGETS LibA LibB Runtime SampleA SampleB SourceFiles) #then we can use set (LibraryDistro_PACKAGE_NAME "A Library") set (LibraryDistro_PACKAGE_VENDOR "Me") set (FullDistro_PACKAGE_NAME "A Library + Source") set (FullDistro_PACKAGE_VENDOR "Me") I think this can be very easy to use and maintain. This is just an sample there can be other types of commands something like add_target_to_package, add_component_to_package or add_component_group_to_package and etc with many different options. Multiple package generation can same time and effort when maintaining and deploying multiple configurations of a big project. Best regards, Orçun
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake