[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / mlir / examples / toy / Ch4 / CMakeLists.txt
blob9d33b7db66b6edcbbd50c11d76f48749df7e4560
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(ToyCh4CombineIncGen)
13 add_toy_chapter(toyc-ch4
14   toyc.cpp
15   parser/AST.cpp
16   mlir/MLIRGen.cpp
17   mlir/Dialect.cpp
18   mlir/ShapeInferencePass.cpp
19   mlir/ToyCombine.cpp
21   DEPENDS
22   ToyCh4OpsIncGen
23   ToyCh4ShapeInferenceInterfaceIncGen
24   ToyCh4CombineIncGen
25   )
27 include_directories(${CMAKE_CURRENT_BINARY_DIR})
28 include_directories(${CMAKE_CURRENT_BINARY_DIR}/include/)
29 target_link_libraries(toyc-ch4
30   PRIVATE
31     MLIRAnalysis
32     MLIRCastInterfaces
33     MLIRCallInterfaces
34     MLIRFunctionInterfaces
35     MLIRIR
36     MLIRParser
37     MLIRPass
38     MLIRSideEffectInterfaces
39     MLIRTransforms)