llvm/mlir/test/lib/Rewrite/CMakeLists.txt

if (MLIR_ENABLE_PDL_IN_PATTERNMATCH)
  # Exclude tests from libMLIR.so
  add_mlir_library(MLIRTestRewrite
    TestPDLByteCode.cpp

    EXCLUDE_FROM_LIBMLIR

    ADDITIONAL_HEADER_DIRS
    ${MLIR_MAIN_INCLUDE_DIR}/mlir/Rewrite

    LINK_LIBS PUBLIC
    MLIRIR
    MLIRPass
    MLIRSupport
    MLIRTransformUtils
    )
endif()