[mlir] Restructure Shape dialect's CMakeLists.
authorTres Popp <tpopp@google.com>
Sat, 6 Jun 2020 08:17:58 +0000 (10:17 +0200)
committerTres Popp <tpopp@google.com>
Mon, 8 Jun 2020 08:06:38 +0000 (10:06 +0200)
Now targets are only built with files in the same directory.

Differential Revision: https://reviews.llvm.org/D81328

mlir/lib/Dialect/Shape/CMakeLists.txt
mlir/lib/Dialect/Shape/IR/CMakeLists.txt [new file with mode: 0644]

index 2af3de8..f33061b 100644 (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)
diff --git a/mlir/lib/Dialect/Shape/IR/CMakeLists.txt b/mlir/lib/Dialect/Shape/IR/CMakeLists.txt
new file mode 100644 (file)
index 0000000..da6c045
--- /dev/null
@@ -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
+  )