Skip to content

Commit bbdde04

Browse files
Install polygeist tools (#216)
1 parent 2b123e0 commit bbdde04

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

tools/mlir-clang/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ add_clang_executable(mlir-clang
3131
Lib/TypeUtils.cc
3232
Lib/CGCall.cc
3333
)
34+
install(TARGETS mlir-clang
35+
EXPORT PolygeistTargets
36+
RUNTIME DESTINATION ${LLVM_TOOLS_INSTALL_DIR}
37+
COMPONENT mlir-clang)
3438

3539
target_include_directories(mlir-clang PRIVATE
3640
"${LLVM_SOURCE_DIR}/../clang/include"

tools/polygeist-opt/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,10 @@ set(LIBS
99
)
1010
add_llvm_executable(polygeist-opt polygeist-opt.cpp)
1111

12+
install(TARGETS polygeist-opt
13+
EXPORT PolygeistTargets
14+
RUNTIME DESTINATION ${LLVM_TOOLS_INSTALL_DIR}
15+
COMPONENT polygeist-opt)
16+
1217
llvm_update_compile_flags(polygeist-opt)
1318
target_link_libraries(polygeist-opt PRIVATE ${LIBS})

0 commit comments

Comments
 (0)