mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 23:25:20 +00:00
We'll use this to prevent repeating common tool dependencies. They all depend on LibCore and AK only. We also want to encapsulate common install rules for them.
16 lines
476 B
CMake
16 lines
476 B
CMake
function(lagom_tool tool)
|
|
cmake_parse_arguments(LAGOM_TOOL "" "" "SOURCES" ${ARGN})
|
|
add_executable(${tool} ${SOURCES} ${LAGOM_TOOL_SOURCES})
|
|
# alias for parity with exports
|
|
add_executable(Lagom::${tool} ALIAS ${tool})
|
|
target_link_libraries(${tool} LagomCore)
|
|
install(
|
|
TARGETS ${tool}
|
|
EXPORT LagomTargets
|
|
RUNTIME COMPONENT Lagom_Runtime
|
|
)
|
|
endfunction()
|
|
|
|
add_subdirectory(ConfigureComponents)
|
|
add_subdirectory(CodeGenerators)
|