enable lua

This commit is contained in:
2026-01-15 21:43:17 +01:00
parent 6ad11773dd
commit 5187143445
8 changed files with 58 additions and 8 deletions

View File

@@ -7,6 +7,12 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Use FetchContent for RmlUi
include(FetchContent)
# Find Lua before RmlUi so it can be used
find_package(Lua REQUIRED)
# Enable RmlUi Lua bindings before fetching
set(RMLUI_LUA_BINDINGS ON CACHE BOOL "" FORCE)
# Fetch RmlUi from GitHub
FetchContent_Declare(
rmlui
@@ -31,7 +37,7 @@ add_executable(mosis-designer
${rmlui_SOURCE_DIR}/Backends/RmlUi_Renderer_GL3.cpp
)
target_link_libraries(mosis-designer PUBLIC
RmlUi::RmlUi glfw freetype
RmlUi::RmlUi RmlUi::Lua glfw freetype
)
target_include_directories(mosis-designer PUBLIC
${RMLUI_SOURCE_DIR}