enable lua
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user