llvm/mlir/examples/transform/Ch4/CMakeLists.txt

# For a better top-level template to copy, see examples/standalone.

include_directories(${CMAKE_CURRENT_BINARY_DIR})
include_directories(${CMAKE_CURRENT_BINARY_DIR}/include)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)

add_subdirectory(include)
add_subdirectory(lib)

add_dependencies(TransformExample transform-opt-ch4)
add_llvm_example(transform-opt-ch4
  transform-opt/transform-opt.cpp)

target_link_libraries(transform-opt-ch4
  PRIVATE
  MLIRIR
  MLIRMlirOptMain
  MLIRSideEffectInterfaces
  MLIRTransformDialectTransforms
  MyExtensionCh4
)