summaryrefslogtreecommitdiff
path: root/libc/src/__support/GPU/CMakeLists.txt
blob: 5a899215f4b6e8d1027164fe7d7ae79f4ea17f15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
if(NOT LIBC_TARGET_ARCHITECTURE_IS_GPU)
  return()
endif()

foreach(target nvptx amdgpu generic)
  add_subdirectory(${target})
  list(APPEND target_gpu_utils libc.src.__support.GPU.${target}.${target}_utils)
endforeach()

add_header_library(
  utils
  HDRS
    utils.h
  DEPENDS
    ${target_gpu_utils}
)