mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:07:34 +00:00
Meta: Allow lagom_tool invocations to specify libraries to link
This commit is contained in:
parent
a2ea704d21
commit
4c4b752ab8
1 changed files with 2 additions and 2 deletions
|
@ -1,9 +1,9 @@
|
||||||
function(lagom_tool tool)
|
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})
|
add_executable(${tool} ${SOURCES} ${LAGOM_TOOL_SOURCES})
|
||||||
# alias for parity with exports
|
# alias for parity with exports
|
||||||
add_executable(Lagom::${tool} ALIAS ${tool})
|
add_executable(Lagom::${tool} ALIAS ${tool})
|
||||||
target_link_libraries(${tool} LagomCore)
|
target_link_libraries(${tool} LagomCore ${LAGOM_TOOL_LIBS})
|
||||||
install(
|
install(
|
||||||
TARGETS ${tool}
|
TARGETS ${tool}
|
||||||
EXPORT LagomTargets
|
EXPORT LagomTargets
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue