[Infra] Fix version-check workflow (#100090)
[llvm-project.git] / mlir / examples / transform / Ch2 / lib / CMakeLists.txt
blob9c2327284292ef5774d545b9c9dc3064c89d5d4c
1 # Outside examples, this should be `add_mlir_library`.
2 add_mlir_example_library(
3   # Library called MyExtension.
4   MyExtensionCh2
6   # Built from the following source files.
7   MyExtension.cpp
9   # Make includes visible without top-level path.
10   ADDITIONAL_HEADER_DIRS
11   ${PROJECT_SOURCE_DIR}/examples/transform/Ch2/include
13   # Make sure ODS declaration and definitions are generated before compiling this.
14   DEPENDS
15   MyExtensionCh2IncGen
17   # Link in the transform dialect, an all generated dialects.
18   LINK_LIBS PRIVATE
19   MLIRTransformDialect
20   MLIRFuncDialect
21   MLIRSCFDialect