summaryrefslogtreecommitdiffstats
path: root/tools/clang-offload-bundler/CMakeLists.txt
blob: 8718015be76a274f7bb4d9b5b5e9d6a09852ae1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
set(LLVM_LINK_COMPONENTS BitWriter Core Object Support)

if(NOT CLANG_BUILT_STANDALONE)
  set(tablegen_deps intrinsics_gen)
endif()

add_clang_executable(clang-offload-bundler
  ClangOffloadBundler.cpp
  
  DEPENDS
  ${tablegen_deps}
  )

set(CLANG_OFFLOAD_BUNDLER_LIB_DEPS
  clangBasic
  )
  
add_dependencies(clang clang-offload-bundler)

target_link_libraries(clang-offload-bundler
  PRIVATE
  ${CLANG_OFFLOAD_BUNDLER_LIB_DEPS}
  )

install(TARGETS clang-offload-bundler RUNTIME DESTINATION bin)