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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
516 B
CMake
Raw Normal View History

set(LIBS
MLIRAllDialects
MLIRParser
MLIRPass
MLIRSPIRV
MLIRSPIRVSerialization
MLIRTargetLLVMIR
MLIRTargetNVVMIR
MLIRTargetROCDLIR
MLIRTranslation
MLIRSupport
)
set(FULL_LIBS
MLIRSPIRVSerialization
MLIRTargetLLVMIR
MLIRTargetNVVMIR
MLIRTargetROCDLIR
)
add_llvm_tool(mlir-translate
mlir-translate.cpp
)
llvm_update_compile_flags(mlir-translate)
whole_archive_link(mlir-translate ${FULL_LIBS})
target_link_libraries(mlir-translate PRIVATE MLIRIR MLIRTranslateClParser ${LIBS} LLVMSupport)