mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-03 03:19:16 +00:00
feat(userspace/libc): implement functions for porting apps
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
15
Userspace/libc/libs/libpthread/CMakeLists.txt
Normal file
15
Userspace/libc/libs/libpthread/CMakeLists.txt
Normal file
@ -0,0 +1,15 @@
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
project(FennixRealTimeLibrary)
|
||||
|
||||
set(SOURCES libpthread.c)
|
||||
|
||||
add_library(pthread STATIC ${SOURCES})
|
||||
add_library(pthread_shared SHARED ${SOURCES})
|
||||
|
||||
target_link_options(pthread_shared PRIVATE -nostdlib)
|
||||
set_target_properties(pthread_shared PROPERTIES OUTPUT_NAME "pthread")
|
||||
|
||||
install(TARGETS pthread pthread_shared
|
||||
ARCHIVE DESTINATION lib
|
||||
LIBRARY DESTINATION lib
|
||||
PUBLIC_HEADER DESTINATION include)
|
Reference in New Issue
Block a user