mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-16 21:00:14 +00:00
* Refactor NuGet to allow arbitrary namespaces * Move csharp build to end of cmake * Minor edit to ensure dll generation in sequence
24 lines
840 B
CMake
24 lines
840 B
CMake
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
# Licensed under the MIT License.
|
|
|
|
set (CSHARP_ROOT ${PROJECT_SOURCE_DIR}/../csharp)
|
|
set (CSHARP_MASTER_TARGET OnnxRuntime.CSharp)
|
|
set (CSHARP_MASTER_PROJECT ${CSHARP_ROOT}/OnnxRuntime.CSharp.proj)
|
|
if (onnxruntime_RUN_ONNX_TESTS)
|
|
set (CSHARP_DEPENDS onnxruntime ${test_data_target})
|
|
else()
|
|
set (CSHARP_DEPENDS onnxruntime)
|
|
endif()
|
|
|
|
include(CSharpUtilities)
|
|
|
|
include_external_msproject(${CSHARP_MASTER_TARGET}
|
|
${CSHARP_MASTER_PROJECT}
|
|
${CSHARP_DEPENDS}
|
|
)
|
|
|
|
# generate Directory.Build.props
|
|
set(DIRECTORY_BUILD_PROPS_COMMENT "WARNING: This is a generated file, please do not check it in!")
|
|
configure_file(${CSHARP_ROOT}/Directory.Build.props.in
|
|
${CSHARP_ROOT}/Directory.Build.props
|
|
@ONLY)
|