[mlir] Mark the MLIR tools for installation in CMake
authorKern Handa <kern.handa@gmail.com>
Wed, 5 Feb 2020 03:42:17 +0000 (03:42 +0000)
committerMehdi Amini <joker-eph@gmail.com>
Wed, 5 Feb 2020 03:42:57 +0000 (03:42 +0000)
This binplaces `mlir-translate`, `mlir-cuda-runner`, and `mlir-cpu-runner` when building the CMake install target.

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

mlir/tools/mlir-cpu-runner/CMakeLists.txt
mlir/tools/mlir-cuda-runner/CMakeLists.txt
mlir/tools/mlir-translate/CMakeLists.txt

index 8227ac2..21da905 100644 (file)
@@ -1,4 +1,4 @@
-add_llvm_executable(mlir-cpu-runner
+add_llvm_tool(mlir-cpu-runner
   mlir-cpu-runner.cpp
 )
 llvm_update_compile_flags(mlir-cpu-runner)
index 6d296a5..294ff7f 100644 (file)
@@ -60,7 +60,7 @@ if(MLIR_CUDA_RUNNER_ENABLED)
     LLVMSupport
     ${CUDA_RUNTIME_LIBRARY}
   )
-  add_llvm_executable(mlir-cuda-runner
+  add_llvm_tool(mlir-cuda-runner
     mlir-cuda-runner.cpp
   )
   add_dependencies(mlir-cuda-runner cuda-runtime-wrappers)
index 22b5ff3..9d58557 100644 (file)
@@ -9,7 +9,7 @@ set(LIBS
   MLIRTranslation
   MLIRSupport
 )
-add_llvm_executable(mlir-translate
+add_llvm_tool(mlir-translate
   mlir-translate.cpp
 )
 llvm_update_compile_flags(mlir-translate)