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