improve magnum

pull/1084/head
ruki 3 years ago
parent efd70f02ce
commit bd78283af5
  1. 7
      packages/m/magnum-integration/xmake.lua

@ -33,10 +33,11 @@ package("magnum-integration")
for _, integration in ipairs(integrations) do
table.insert(configs, "-DWITH_" .. integration:upper() .. "=" .. (package:config(integration) and "ON" or "OFF"))
end
for _, file in ipairs(os.files("src/Magnum/ImGuiIntegration/*")) do
io.replace(file, "<imgui.h>", "<imgui/imgui.h>", {plain = true})
local packagedeps = {}
if package:config("imgui") then
table.insert(packagedeps, "imgui")
end
import("package.tools.cmake").install(package, configs)
import("package.tools.cmake").install(package, configs, {packagedeps = packagedeps})
end)
on_test(function (package)

Loading…
Cancel
Save