mirror of https://github.com/llvm/torch-mlir
13 lines
380 B
CMake
13 lines
380 B
CMake
get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
|
|
get_property(conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS)
|
|
set(LIBS
|
|
${dialect_libs}
|
|
${conversion_libs}
|
|
MLIROptLib
|
|
NPCOMPNumpyDialect
|
|
)
|
|
add_llvm_executable(npcomp-opt npcomp-opt.cpp)
|
|
|
|
llvm_update_compile_flags(npcomp-opt)
|
|
target_link_libraries(npcomp-opt PRIVATE ${LIBS})
|