mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-07 01:56:38 +00:00
Lagom: Add ClangPlugins to the build system
This commit is contained in:
parent
c3ed1a7995
commit
4ae7bbda52
Notes:
sideshowbarker
2024-07-17 03:03:15 +09:00
Author: https://github.com/mattco98
Commit: 4ae7bbda52
Pull-request: https://github.com/SerenityOS/serenity/pull/24027
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/nico
9 changed files with 34 additions and 1 deletions
|
@ -52,6 +52,7 @@ if (NOT COMMAND serenity_lib)
|
|||
add_library(${target_name} ${SERENITY_LIB_TYPE} ${SOURCES} ${GENERATED_SOURCES})
|
||||
set_target_properties(${target_name} PROPERTIES EXCLUDE_FROM_ALL TRUE)
|
||||
set_target_properties(${target_name} PROPERTIES VERSION "serenity")
|
||||
target_link_libraries(${target_name} PUBLIC GenericClangPlugin)
|
||||
install(TARGETS ${target_name} DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL)
|
||||
set_target_properties(${target_name} PROPERTIES OUTPUT_NAME ${fs_name})
|
||||
serenity_generated_sources(${target_name})
|
||||
|
@ -80,6 +81,7 @@ if (NOT COMMAND serenity_bin)
|
|||
function(serenity_bin target_name)
|
||||
serenity_install_sources()
|
||||
add_executable(${target_name} ${SOURCES})
|
||||
target_link_libraries(${target_name} PUBLIC GenericClangPlugin)
|
||||
set_target_properties(${target_name} PROPERTIES EXCLUDE_FROM_ALL TRUE)
|
||||
install(TARGETS ${target_name} RUNTIME DESTINATION bin OPTIONAL)
|
||||
serenity_generated_sources(${target_name})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue