There's not presently a way to add "package" to "all" -- but you can easily add a custom target that calls:
cmake --build . --config Release --target package Or directly calls cpack with appropriate arguments. And with a custom target, you can make it part of all.... HTH, David On Thu, Aug 25, 2011 at 4:13 PM, James Bigler <[email protected]> wrote: > Does anyone know of a way to have the package target built by default? In > other words add it to the ADD_BUILD built in target? I'm guessing since > there isn't support for adding custom targets to built in CMake targets that > this would have to be controlled by some magic CMAKE_ variable. > > Thanks, > James > > _______________________________________________ > 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 > _______________________________________________ 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
