mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-16 21:00:14 +00:00
22 lines
997 B
CMake
22 lines
997 B
CMake
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
# Licensed under the MIT License.
|
|
|
|
file(GLOB_RECURSE onnxruntime_util_srcs CONFIGURE_DEPENDS
|
|
"${ONNXRUNTIME_ROOT}/core/util/*.h"
|
|
"${ONNXRUNTIME_ROOT}/core/util/*.cc"
|
|
)
|
|
|
|
source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_util_srcs})
|
|
|
|
onnxruntime_add_static_library(onnxruntime_util ${onnxruntime_util_srcs})
|
|
target_include_directories(onnxruntime_util PRIVATE ${ONNXRUNTIME_ROOT} PUBLIC ${eigen_INCLUDE_DIRS})
|
|
onnxruntime_add_include_to_target(onnxruntime_util onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB})
|
|
if(UNIX)
|
|
target_compile_options(onnxruntime_util PUBLIC "-Wno-error=comment")
|
|
endif()
|
|
set_target_properties(onnxruntime_util PROPERTIES LINKER_LANGUAGE CXX)
|
|
set_target_properties(onnxruntime_util PROPERTIES FOLDER "ONNXRuntime")
|
|
add_dependencies(onnxruntime_util ${onnxruntime_EXTERNAL_DEPENDENCIES})
|
|
if (WIN32)
|
|
target_compile_definitions(onnxruntime_util PRIVATE _SCL_SECURE_NO_WARNINGS)
|
|
endif()
|