28 lines · plain
1# For a better template to copy, see examples/standalone2add_subdirectory(include)3 4set(LLVM_LINK_COMPONENTS5 Support6 )7 8add_toy_chapter(toyc-ch29 toyc.cpp10 parser/AST.cpp11 mlir/MLIRGen.cpp12 mlir/Dialect.cpp13 14 DEPENDS15 ToyCh2OpsIncGen16 17 )18include_directories(include/)19include_directories(${CMAKE_CURRENT_BINARY_DIR}/include/)20target_link_libraries(toyc-ch221 PRIVATE22 MLIRAnalysis23 MLIRFunctionInterfaces24 MLIRIR25 MLIRParser26 MLIRSideEffectInterfaces27 MLIRTransforms)28