ladybird/Meta/Lagom/Tools/CMakeLists.txt
Andrew Kaster a6d83e02d2 Meta: Define and use lagom_tool() CMake helper function for all Tools
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.
2021-09-15 19:04:52 +04:30

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)