c++ - CMake and MsVS-NuGet -


i'm developing desktop application, using c++ rest sdk (codename casablanca), qt5 , other libraries.

for project setup, use cmake.

how cmake install nuget packages?

i have install each time manually, if rerun cmake, isn't option.

the command line reference of nuget located @ http://docs.nuget.org/docs/reference/command-line-reference

you can install packages using nuget install or nuget restore command. nuget update updates installed packages (restore must run beforhand).

you can instruct cmake run nuget before every build using:

add_custom_command(target ${project_name}     pre_build     command nuget restore ${cmake_binary_dir}\yoursolution.sln ) 

or @ configure time using execute_process.

you can prepare nuget config file using configure_file or use appropriate nuget install commands directly.


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -