| 1 |
# For a better template to copy, see examples/standalone |
| 2 |
add_subdirectory(include) |
| 3 |
|
| 4 |
set(LLVM_LINK_COMPONENTS |
| 5 |
Support |
| 6 |
) |
| 7 |
|
| 8 |
add_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 |
) |
| 18 |
include_directories(include/) |
| 19 |
include_directories(${CMAKE_CURRENT_BINARY_DIR}/include/) |
| 20 |
target_link_libraries(toyc-ch2 |
| 21 |
PRIVATE |
| 22 |
MLIRAnalysis |
| 23 |
MLIRFunctionInterfaces |
| 24 |
MLIRIR |
| 25 |
MLIRParser |
| 26 |
MLIRSideEffectInterfaces |
| 27 |
MLIRTransforms) |