31 lines · plain
1add_header_library(2 units3 HDRS4 units.h5 DEPENDS6 libc.src.__support.common7 libc.hdr.types.time_t8)9 10if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})11 add_subdirectory(${LIBC_TARGET_OS})12else()13 return()14endif()15 16add_object_library(17 clock_gettime18 ALIAS19 DEPENDS20 libc.src.__support.time.${LIBC_TARGET_OS}.clock_gettime21)22 23if(TARGET libc.src.__support.time.${LIBC_TARGET_OS}.clock_settime) 24 add_object_library(25 clock_settime26 ALIAS27 DEPENDS28 libc.src.__support.time.${LIBC_TARGET_OS}.clock_settime29 )30endif()31