llvm-project/mlir/tools/mlir-opt/CMakeLists.txt

22 lines
377 B
CMake
Raw Normal View History

set(LIBS
MLIRAffineOps
MLIRAnalysis
MLIREDSC
MLIRFxpMathOps
MLIRLinalg
MLIRLLVMIR
MLIRParser
MLIRPass
MLIRQuantization
MLIRStandardOps
MLIRTransforms
MLIRSupport
MLIRVectorOps
)
add_executable(mlir-opt
mlir-opt.cpp
)
llvm_update_compile_flags(mlir-opt)
whole_archive_link(mlir-opt ${LIBS})
target_link_libraries(mlir-opt MLIRIR ${LIBS} LLVMSupport)