Skip to content

Commit

Permalink
CMake: Add serenity_lib_static
Browse files Browse the repository at this point in the history
  • Loading branch information
ldm5180 authored and awesomekling committed Mar 24, 2022
1 parent ff8a6d8 commit e08cd4d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Meta/CMake/utils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e08cd4d

Please sign in to comment.