libui: Install the built library into the system root

This commit is contained in:
apio 2023-08-21 14:07:34 +02:00
parent ad001b4ee7
commit 5bd2b3d81d
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -23,3 +23,8 @@ target_compile_options(ui PRIVATE ${COMMON_FLAGS} -fno-threadsafe-statics)
target_include_directories(ui PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include/)
target_include_directories(ui PUBLIC ${LUNA_BASE}/usr/include)
target_link_libraries(ui PUBLIC os)
add_custom_command(
TARGET ui
COMMAND "${CMAKE_COMMAND}" -E copy ${CMAKE_CURRENT_BINARY_DIR}/libui.a ${LUNA_BASE}/usr/lib/libui.a
)