Skip to content

davidsummers/nuget-hello-world

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Demonstrate how to use NUGET in CMAKE to pull a library package and compile and link to it.

This process works on both Linux and Windows.

To generate the NUGET package:

cd producer/jsoncpp
cmake -B build
cmake --build build --target package

Then copy the generated build/jsoncpp.1.9.4.nupkg to your NUGET Source
repository.

To consume the NUGET package:

First make sure you have your nuget source repository set up.

cd consumer
cmake -B build
cmake --build build

Test by running the generated program:

./build/hello

About

Example of how to pull NUGET packages from CMAKE

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published