mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
2b29e611fe
This matches the target names for the main serenity build, and will make simplifying the Lagom build much easier going forward. The LagomFoo name came from a time when we had both library builds in the same CMake generated project and needed to deconflict the names.
20 lines
575 B
CMake
20 lines
575 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} LibCore ${LAGOM_TOOL_LIBS})
|
|
install(
|
|
TARGETS ${tool}
|
|
EXPORT LagomTargets
|
|
RUNTIME COMPONENT Lagom_Runtime
|
|
)
|
|
endfunction()
|
|
|
|
add_subdirectory(CodeGenerators)
|
|
add_subdirectory(ConfigureComponents)
|
|
add_subdirectory(IPCMagicLinter)
|
|
|
|
if (ENABLE_JAKT)
|
|
include(jakt)
|
|
endif()
|