forked from OSchip/llvm-project
25 lines
514 B
CMake
25 lines
514 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
Support
|
|
)
|
|
|
|
get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
|
|
get_property(translation_libs GLOBAL PROPERTY MLIR_TRANSLATION_LIBS)
|
|
|
|
add_llvm_executable(standalone-translate
|
|
standalone-translate.cpp
|
|
)
|
|
llvm_update_compile_flags(standalone-translate)
|
|
target_link_libraries(standalone-translate
|
|
PRIVATE
|
|
${dialect_libs}
|
|
${translation_libs}
|
|
MLIRIR
|
|
MLIRParser
|
|
MLIRPass
|
|
MLIRSPIRV
|
|
MLIRTranslation
|
|
MLIRSupport
|
|
)
|
|
|
|
mlir_check_link_libraries(standalone-translate)
|