diff --git a/packages/i/imguizmo/xmake.lua b/packages/i/imguizmo/xmake.lua index a4c110545..23e45a809 100644 --- a/packages/i/imguizmo/xmake.lua +++ b/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) +