1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:17:45 +00:00

Lagom: Add LibMain as a lagom_lib()

This commit is contained in:
Linus Groh 2021-11-22 19:23:59 +00:00 committed by Andreas Kling
parent b14a64b3c8
commit ba0f89a4d1

View file

@ -345,6 +345,16 @@ if (BUILD_LAGOM)
SOURCES ${LIBLINE_SOURCES}
)
# Main
file(GLOB LIBMAIN_SOURCES CONFIGURE_DEPENDS "../../Userland/Libraries/LibMain/*.cpp")
lagom_lib(Main main
SOURCES ${LIBMAIN_SOURCES}
)
# The macOS linker is not happy about LibMain's main() calling an undefined symbol (serenity_main()).
if (APPLE)
target_link_options(LagomMain PRIVATE -undefined dynamic_lookup)
endif()
# Markdown
file(GLOB LIBMARKDOWN_SOURCES CONFIGURE_DEPENDS "../../Userland/Libraries/LibMarkdown/*.cpp")
lagom_lib(Markdown markdown