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 +)