mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 16:15:08 +00:00
16 lines
533 B
CMake
16 lines
533 B
CMake
function(lagom_tool tool)
|
|
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 ${LAGOM_TOOL_LIBS})
|
|
install(
|
|
TARGETS ${tool}
|
|
EXPORT LagomTargets
|
|
RUNTIME COMPONENT Lagom_Runtime
|
|
)
|
|
endfunction()
|
|
|
|
add_subdirectory(CodeGenerators)
|
|
add_subdirectory(ConfigureComponents)
|
|
add_subdirectory(IPCMagicLinter)
|