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

19 lines
293 B
CMake
Raw Normal View History

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