From 44f2a4e97e69eb1e023545adaeeaeb87baea8241 Mon Sep 17 00:00:00 2001 From: apio Date: Mon, 21 Aug 2023 14:07:34 +0200 Subject: [PATCH] libui: Install the built library into the system root --- libui/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libui/CMakeLists.txt b/libui/CMakeLists.txt index 415f6bde..479ee00c 100644 --- a/libui/CMakeLists.txt +++ b/libui/CMakeLists.txt @@ -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 +)