Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions windows/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,21 @@ endif()
set(PROJECT_NAME "flutter_tts")
project(${PROJECT_NAME} LANGUAGES CXX)

################ NuGet intall begin ################
################ NuGet install begin ################
find_program(NUGET_EXE NAMES nuget)
if(NOT NUGET_EXE)
message("NUGET.EXE not found.")
message(FATAL_ERROR "Please install this executable, and run CMake again.")
message("NUGET.EXE not found.")
message(FATAL_ERROR "Please install this executable, and run CMake again.")
endif()

execute_process(
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/nuget.exe install -OutputDirectory ${CMAKE_CURRENT_SOURCE_DIR}/packages Microsoft.Windows.CppWinRT -Version 2.0.210312.4
COMMAND ${NUGET_EXE}
install
Microsoft.Windows.CppWinRT
-Version 2.0.210503.1
-ExcludeVersion
-OutputDirectory ${CMAKE_BINARY_DIR}/packages
)
ARGS install "Microsoft.Windows.CppWinRT" -Version 2.0.210503.1 -ExcludeVersion -OutputDirectory ${CMAKE_BINARY_DIR}/packages)
################ NuGet install end ################

# This value is used when generating builds using this plugin, so it must
Expand Down