1add_header_library( 2 mutex_common 3 HDRS 4 mutex_common.h 5) 6 7add_header_library( 8 thread_attrib 9 HDRS 10 thread_attrib.h 11) 12 13if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS}) 14 add_subdirectory(${LIBC_TARGET_OS}) 15endif() 16 17if(TARGET libc.src.__support.threads.${LIBC_TARGET_OS}.mutex) 18 add_header_library( 19 mutex 20 HDRS 21 mutex.h 22 DEPENDS 23 .${LIBC_TARGET_OS}.mutex 24 ) 25endif() 26 27if(TARGET libc.src.__support.threads.${LIBC_TARGET_OS}.thread) 28 add_header_library( 29 thread 30 HDRS 31 thread.h 32 DEPENDS 33 .${LIBC_TARGET_OS}.thread 34 ) 35endif() 36