llvm-project/mlir/lib/IR/CMakeLists.txt

10 lines
287 B
CMake

file(GLOB globbed *.c *.cpp)
add_llvm_library(MLIRIR
${globbed}
ADDITIONAL_HEADER_DIRS
${MLIR_MAIN_INCLUDE_DIR}/mlir/IR
)
add_dependencies(MLIRIR MLIRCallOpInterfacesIncGen MLIROpAsmInterfacesIncGen MLIRSupport LLVMSupport)
target_link_libraries(MLIRIR MLIRSupport LLVMSupport)