Add tests for Imguizmo (#1306)

* improve imguiemo

* add test for imguizmo
pull/1308/head
ruki 2 years ago committed by GitHub
parent abe8473b28
commit 7b3267d6e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      packages/i/imguizmo/xmake.lua

@ -29,3 +29,13 @@ package("imguizmo")
io.writefile("xmake.lua", xmake_lua)
import("package.tools.xmake").install(package)
end)
on_test(function (package)
assert(package:check_cxxsnippets({test = [[
void test() {
ImGuiIO& io = ImGui::GetIO();
ImGuizmo::SetRect(0, 0, io.DisplaySize.x, io.DisplaySize.y);
}
]]}, {configs = {languages = "c++11"}, includes = {"imgui.h", "ImGuizmo.h"}}))
end)

Loading…
Cancel
Save