katusk / CMakeNuGetTools

CMake functions for adding NuGet package dependencies with CMake exports or native .targets files, generating and merging .nuspec files, calling nuget pack, and more. WIP.
MIT License
26 stars 5 forks source link

Added support for creating autopkg files #5

Closed mcsmit closed 2 years ago

mcsmit commented 2 years ago

Autopkg files can be packaged by PowerShell's CoApp Write-NuGetPackage command (http://coapp.org). This way .target files are created automatically that are used by Visual Studio to find headers, libraries and binaries when invoking a NuGet package.

Added

The file NuGetPack.autopkg.cmake contains all internal methods to generate the autopkg files and is based on NuGetPack.nuspec.cmake.

Changes

NuGetPack.cmake is updated with methods to generate and merge autopkg files. The file NuGetPack.nupkg.cmake is updated and contains the actual pack command.

katusk commented 2 years ago

Looking good, accepted and merged! Thanks a lot :)