[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / mlir / examples / toy / Ch3 / CMakeLists.txt
blob565f3c41c5b80ef6b5f3da4305e6293a4f1b2b32
1 # For a better template to copy, see examples/standalone
2 include_directories(include)
3 add_subdirectory(include)
5 set(LLVM_LINK_COMPONENTS
6   Support
7   )
9 set(LLVM_TARGET_DEFINITIONS mlir/ToyCombine.td)
10 mlir_tablegen(ToyCombine.inc -gen-rewriters)
11 add_public_tablegen_target(ToyCh3CombineIncGen)
13 add_toy_chapter(toyc-ch3
14   toyc.cpp
15   parser/AST.cpp
16   mlir/MLIRGen.cpp
17   mlir/Dialect.cpp
18   mlir/ToyCombine.cpp
20   DEPENDS
21   ToyCh3OpsIncGen
22   ToyCh3CombineIncGen
23   )
25 include_directories(${CMAKE_CURRENT_BINARY_DIR})
26 include_directories(${CMAKE_CURRENT_BINARY_DIR}/include/)
27 target_link_libraries(toyc-ch3
28   PRIVATE
29     MLIRAnalysis
30     MLIRFunctionInterfaces
31     MLIRIR
32     MLIRParser
33     MLIRPass
34     MLIRSideEffectInterfaces
35     MLIRTransforms)