onnx-mlir/src/runtime/CMakeLists.txt

19 lines
522 B
CMake
Raw Normal View History

add_library(cruntime
dyn_memref.cpp
dyn_memref.h
data_type.h)
target_include_directories(cruntime
2019-12-23 13:13:52 +08:00
PRIVATE ${ONNF_SRC_ROOT} ${ONNF_BIN_ROOT}
${ONNF_SRC_ROOT})
pybind11_add_module(pyruntime
dyn_memref.cpp
dyn_memref.h
runtime.cpp
runtime.hpp)
target_link_libraries(pyruntime PRIVATE ${CMAKE_DL_LIBS})
target_include_directories(pyruntime
PRIVATE ${ONNF_SRC_ROOT} ${ONNF_BIN_ROOT}
${ONNF_SRC_ROOT})
2019-12-23 12:52:49 +08:00
add_dependencies(pyruntime cruntime)