llvm-project/mlir/examples/toy/Ch2/CMakeLists.txt

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)