[mlir] Restructure Shape dialect's CMakeLists.

Now targets are only built with files in the same directory.

Differential Revision: https://reviews.llvm.org/D81328
This commit is contained in:
Tres Popp 2020-06-06 10:17:58 +02:00
parent 4214031d43
commit 5d77bd733e
2 changed files with 17 additions and 16 deletions

View File

@ -1,16 +1 @@
add_mlir_dialect_library(MLIRShape
IR/Shape.cpp
ADDITIONAL_HEADER_DIRS
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/Shape
DEPENDS
MLIRShapeOpsIncGen
LINK_LIBS PUBLIC
MLIRControlFlowInterfaces
MLIRDialect
MLIRInferTypeOpInterface
MLIRIR
MLIRSideEffectInterfaces
)
add_subdirectory(IR)

View File

@ -0,0 +1,16 @@
add_mlir_dialect_library(MLIRShape
Shape.cpp
ADDITIONAL_HEADER_DIRS
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/Shape
DEPENDS
MLIRShapeOpsIncGen
LINK_LIBS PUBLIC
MLIRControlFlowInterfaces
MLIRDialect
MLIRInferTypeOpInterface
MLIRIR
MLIRSideEffectInterfaces
)