[CMake] Request for NuGet support

Fredrik Orderud forderud at gmail.com
Wed Apr 29 05:15:04 EDT 2015


NuGet have recently emerged as a "de facto" standard for managing 3rd party
dependencies when building C++ applications with Visual Studio on Windows.
NuGet is nicely integrated into Visual Studio, downloads & unpacks
dependencies automatically, and configures include, lib & binary paths to
streamline the build process. It would be great if CMake could add some
form of minimal support for NuGet when generating Visual Studio project
files, so that CMake can be used together with existing NuGet
infrastructure on Windows.


I think it would be sufficient to add a mechanism for specifying NuGet
dependencies with version numbers. Example: set(NUGET_DEPS "boost/1.57
zlib/1.2.8"). CMake can then incorporate this information when generating
Visual Studio project files. This typically involves adding a few XML tags
in the vcxproj-file, as well as adding a "packages.config" file together
with the project.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150429/f96b62d7/attachment.html>


More information about the CMake mailing list