2018-11-20 00:48:22 +00:00
|
|
|
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
|
# Licensed under the MIT License.
|
|
|
|
|
|
2019-07-03 17:32:59 +00:00
|
|
|
file(GLOB_RECURSE onnxruntime_codegen_common_srcs
|
|
|
|
|
"${ONNXRUNTIME_ROOT}/core/codegen/common/*.h"
|
|
|
|
|
"${ONNXRUNTIME_ROOT}/core/codegen/common/*.cc"
|
|
|
|
|
)
|
|
|
|
|
|
2019-04-29 19:58:20 +00:00
|
|
|
file(GLOB_RECURSE onnxruntime_codegen_tvm_srcs CONFIGURE_DEPENDS
|
2019-07-03 17:32:59 +00:00
|
|
|
"${ONNXRUNTIME_ROOT}/core/codegen/mti/*.h"
|
|
|
|
|
"${ONNXRUNTIME_ROOT}/core/codegen/mti/*.cc"
|
|
|
|
|
"${ONNXRUNTIME_ROOT}/core/codegen/passes/*.h"
|
|
|
|
|
"${ONNXRUNTIME_ROOT}/core/codegen/passes/*.cc"
|
2018-11-20 00:48:22 +00:00
|
|
|
)
|
|
|
|
|
|
2019-07-03 17:32:59 +00:00
|
|
|
source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_codegen_common_srcs} ${onnxruntime_codegen_tvm_srcs})
|
|
|
|
|
|
2019-01-07 21:15:24 +00:00
|
|
|
#onnxruntime_codegen_tvm depends on onnxruntime framework
|
2021-04-29 18:54:57 +00:00
|
|
|
onnxruntime_add_static_library(onnxruntime_codegen_tvm ${onnxruntime_codegen_common_srcs} ${onnxruntime_codegen_tvm_srcs})
|
2018-11-20 00:48:22 +00:00
|
|
|
set_target_properties(onnxruntime_codegen_tvm PROPERTIES FOLDER "ONNXRuntime")
|
2019-07-03 17:32:59 +00:00
|
|
|
target_include_directories(onnxruntime_codegen_tvm PRIVATE ${ONNXRUNTIME_ROOT} ${TVM_INCLUDES} ${MKLML_INCLUDE_DIR} ${eigen_INCLUDE_DIRS})
|
2022-12-20 19:44:02 +00:00
|
|
|
onnxruntime_add_include_to_target(onnxruntime_codegen_tvm onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::mp11)
|
2018-11-20 00:48:22 +00:00
|
|
|
target_compile_options(onnxruntime_codegen_tvm PRIVATE ${DISABLED_WARNINGS_FOR_TVM})
|
|
|
|
|
# need onnx to build to create headers that this project includes
|
2019-01-07 21:15:24 +00:00
|
|
|
add_dependencies(onnxruntime_codegen_tvm ${onnxruntime_EXTERNAL_DEPENDENCIES})
|