mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +00:00
a6d83e02d2
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.
15 lines
476 B
CMake
15 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)
|