mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 11:36:10 +00:00
CMake: Add serenity_lib_static
This commit is contained in:
parent
ff8a6d8e59
commit
e08cd4d608
Notes:
sideshowbarker
2024-07-17 16:51:14 +09:00
Author: https://github.com/ldm5180 Commit: https://github.com/SerenityOS/serenity/commit/e08cd4d608 Pull-request: https://github.com/SerenityOS/serenity/pull/13201 Reviewed-by: https://github.com/bgianfo ✅
1 changed files with 11 additions and 0 deletions
|
@ -44,6 +44,17 @@ function(serenity_lib target_name fs_name)
|
|||
serenity_generated_sources(${target_name})
|
||||
endfunction()
|
||||
|
||||
function(serenity_lib_static target_name fs_name)
|
||||
serenity_install_headers(${target_name})
|
||||
serenity_install_sources()
|
||||
add_library(${target_name} STATIC ${SOURCES} ${GENERATED_SOURCES})
|
||||
set_target_properties(${target_name} PROPERTIES EXCLUDE_FROM_ALL TRUE)
|
||||
set_target_properties(${target_name} PROPERTIES VERSION "serenity")
|
||||
install(TARGETS ${target_name} DESTINATION usr/lib OPTIONAL)
|
||||
set_target_properties(${target_name} PROPERTIES OUTPUT_NAME ${fs_name})
|
||||
serenity_generated_sources(${target_name})
|
||||
endfunction()
|
||||
|
||||
function(serenity_libc target_name fs_name)
|
||||
serenity_install_headers("")
|
||||
serenity_install_sources()
|
||||
|
|
Loading…
Add table
Reference in a new issue