mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-26 19:22:30 -05:00
Meta: Allow lagom_tool invocations to specify libraries to link
This commit is contained in:
parent
a2ea704d21
commit
4c4b752ab8
Notes:
sideshowbarker
2024-07-18 00:46:39 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/4c4b752ab86 Pull-request: https://github.com/SerenityOS/serenity/pull/11043
1 changed files with 2 additions and 2 deletions
|
@ -1,9 +1,9 @@
|
|||
function(lagom_tool tool)
|
||||
cmake_parse_arguments(LAGOM_TOOL "" "" "SOURCES" ${ARGN})
|
||||
cmake_parse_arguments(LAGOM_TOOL "" "" "SOURCES;LIBS" ${ARGN})
|
||||
add_executable(${tool} ${SOURCES} ${LAGOM_TOOL_SOURCES})
|
||||
# alias for parity with exports
|
||||
add_executable(Lagom::${tool} ALIAS ${tool})
|
||||
target_link_libraries(${tool} LagomCore)
|
||||
target_link_libraries(${tool} LagomCore ${LAGOM_TOOL_LIBS})
|
||||
install(
|
||||
TARGETS ${tool}
|
||||
EXPORT LagomTargets
|
||||
|
|
Loading…
Add table
Reference in a new issue