CMake and MsVS-NuGet

后端 未结 3 1175

I\'m currently developing a desktop application, using the C++ REST SDK (codename Casablanca), Qt5 and some other libraries.

For the project setup, I use CMake.

3条回答
  •  时光取名叫无心
    2020-12-03 01:51

    According to https://github.com/clarkezone/flutter_win_webview/commit/ce603ec8c96bed50e4443c49a150ce4d3d352896

    find_program(NUGET_EXE NAMES nuget)
    exec_program(${NUGET_EXE}
        ARGS install "Microsoft.Web.WebView2" -Version 0.9.579 -ExcludeVersion -OutputDirectory ${CMAKE_BINARY_DIR}/packages)
    target_link_libraries(${PLUGIN_NAME} PRIVATE ${CMAKE_BINARY_DIR}/packages/Microsoft.Web.WebView2/build/native/Microsoft.Web.WebView2.targets)
    

提交回复
热议问题