2021-09-07 08:34:28 +03:00
|
|
|
function(lagom_tool tool)
|
2021-11-23 18:18:57 +03:00
|
|
|
cmake_parse_arguments(LAGOM_TOOL "" "" "SOURCES;LIBS" ${ARGN})
|
2021-09-07 08:34:28 +03:00
|
|
|
add_executable(${tool} ${SOURCES} ${LAGOM_TOOL_SOURCES})
|
|
|
|
# alias for parity with exports
|
|
|
|
add_executable(Lagom::${tool} ALIAS ${tool})
|
2023-03-21 18:35:30 +03:00
|
|
|
target_link_libraries(${tool} LibCore LibFileSystem ${LAGOM_TOOL_LIBS})
|
2021-09-07 08:34:28 +03:00
|
|
|
install(
|
|
|
|
TARGETS ${tool}
|
|
|
|
EXPORT LagomTargets
|
|
|
|
RUNTIME COMPONENT Lagom_Runtime
|
|
|
|
)
|
|
|
|
endfunction()
|
|
|
|
|
2021-08-08 10:31:23 +03:00
|
|
|
add_subdirectory(CodeGenerators)
|
2021-11-01 19:12:56 +03:00
|
|
|
add_subdirectory(ConfigureComponents)
|
|
|
|
add_subdirectory(IPCMagicLinter)
|
2022-05-20 08:46:36 +03:00
|
|
|
|
|
|
|
if (ENABLE_JAKT)
|
|
|
|
include(jakt)
|
|
|
|
endif()
|