1# For a better template to copy, see examples/standalone 2add_subdirectory(include) 3 4set(LLVM_LINK_COMPONENTS 5 Support 6 ) 7 8add_toy_chapter(toyc-ch2 9 toyc.cpp 10 parser/AST.cpp 11 mlir/MLIRGen.cpp 12 mlir/Dialect.cpp 13 14 DEPENDS 15 ToyCh2OpsIncGen 16 17 ) 18include_directories(include/) 19include_directories(${CMAKE_CURRENT_BINARY_DIR}/include/) 20target_link_libraries(toyc-ch2 21 PRIVATE 22 MLIRAnalysis 23 MLIRIR 24 MLIRParser 25 MLIRSideEffectInterfaces 26 MLIRTransforms) 27