llvm/libc/src/time/gpu/CMakeLists.txt

add_object_library(
  time_utils
  SRCS
    time_utils.cpp
  HDRS
    time_utils.h
  DEPENDS
    libc.hdr.types.clock_t
    libc.hdr.time_macros
)

add_entrypoint_object(
  clock
  SRCS
    clock.cpp
  HDRS
    ../clock.h
  DEPENDS
    libc.include.time
    libc.src.__support.GPU.utils
    .time_utils
)

add_entrypoint_object(
  nanosleep
  SRCS
    nanosleep.cpp
  HDRS
    ../nanosleep.h
  DEPENDS
    libc.include.time
    libc.src.__support.GPU.utils
    .time_utils
)

add_entrypoint_object(
  clock_gettime
  SRCS
    clock_gettime.cpp
  HDRS
    ../clock_gettime.h
  DEPENDS
    libc.hdr.types.clockid_t
    libc.hdr.types.struct_timespec
    .time_utils
)