mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-05 08:37:06 +08:00

* add code and docs for ppclas examples * fix doc * add code for printing results * add ppcls demo and docs * modify example according to refined c api * modify example code and docs for ppcls and ppdet * modify example code and docs for ppcls and ppdet * update ppdet demo * fix demo codes * fix doc * release resource when failed * fix * fix name * fix name
23 lines
690 B
CMake
23 lines
690 B
CMake
PROJECT(infer_demo CSharp)
|
|
CMAKE_MINIMUM_REQUIRED (VERSION 3.10)
|
|
|
|
# Set the C# language version (defaults to 3.0 if not set).
|
|
set(CMAKE_CSharp_FLAGS "/langversion:10")
|
|
set(CMAKE_DOTNET_TARGET_FRAMEWORK "net6.0")
|
|
set(CMAKE_DOTNET_SDK "Microsoft.NET.Sdk")
|
|
|
|
# 指定下载解压后的fastdeploy库路径
|
|
option(FASTDEPLOY_INSTALL_DIR "Path of downloaded fastdeploy sdk.")
|
|
|
|
include(${FASTDEPLOY_INSTALL_DIR}/FastDeployCSharp.cmake)
|
|
|
|
|
|
add_executable(infer_demo ${PROJECT_SOURCE_DIR}/infer.cs)
|
|
|
|
set_property(TARGET infer_demo PROPERTY VS_DOTNET_REFERENCES
|
|
${FASTDEPLOY_DOTNET_REFERENCES}
|
|
)
|
|
|
|
set_property(TARGET infer_demo
|
|
PROPERTY VS_PACKAGE_REFERENCES ${FASTDEPLOY_PACKAGE_REFERENCES})
|