2024-06-18 13:14:35 +03:00
|
|
|
set(USERSPACE_LIBRARIES
|
|
|
|
LibC
|
|
|
|
LibELF
|
|
|
|
LibFont
|
|
|
|
LibGUI
|
|
|
|
LibImage
|
|
|
|
LibInput
|
|
|
|
)
|
|
|
|
|
2024-06-19 04:20:23 +03:00
|
|
|
foreach(library ${USERSPACE_LIBRARIES})
|
|
|
|
add_subdirectory(${library})
|
2024-06-18 13:14:35 +03:00
|
|
|
endforeach()
|
|
|
|
|
|
|
|
add_custom_target(libraries)
|
|
|
|
|
2024-06-19 04:20:23 +03:00
|
|
|
foreach(library ${USERSPACE_LIBRARIES})
|
|
|
|
string(TOLOWER ${library} library_lower)
|
|
|
|
if (TARGET ${library_lower})
|
|
|
|
add_dependencies(libraries ${library_lower})
|
2024-06-18 13:14:35 +03:00
|
|
|
# This is to allow cmake to link when libc updates
|
2024-06-19 04:20:23 +03:00
|
|
|
target_link_options(${library_lower} PRIVATE -nolibc)
|
2024-06-18 13:14:35 +03:00
|
|
|
endif()
|
|
|
|
endforeach()
|