forked from OSchip/llvm-project
26 lines
404 B
CMake
26 lines
404 B
CMake
add_subdirectory(include)
|
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
Support
|
|
)
|
|
|
|
add_toy_chapter(toyc-ch2
|
|
toyc.cpp
|
|
parser/AST.cpp
|
|
mlir/MLIRGen.cpp
|
|
mlir/Dialect.cpp
|
|
|
|
DEPENDS
|
|
ToyCh2OpsIncGen
|
|
|
|
)
|
|
include_directories(include/)
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR}/include/)
|
|
target_link_libraries(toyc-ch2
|
|
PRIVATE
|
|
MLIRAnalysis
|
|
MLIRIR
|
|
MLIRParser
|
|
MLIRSideEffects
|
|
MLIRTransforms)
|