diff --git a/xmake.lua b/xmake.lua index ce24d65..33f0414 100644 --- a/xmake.lua +++ b/xmake.lua @@ -12,7 +12,7 @@ target("TowerDefense") add_links("pthread") set_languages("c++17") - + add_packages("zlib", "libsdl", "glew", "opengl", "glm") if is_os("windows") then @@ -40,3 +40,12 @@ target("TowerDefense") add_cxflags("-pedantic -Wall -Wextra -Wcast-align -Wcast-qual -Wctor-dtor-privacy -Wdisabled-optimization -Wformat=2 -Winit-self -Wlogical-op -Wmissing-declarations -Wmissing-include-dirs -Wnoexcept -Wold-style-cast -Wredundant-decls -Wshadow -Wsign-conversion -Wsign-promo -Wstrict-null-sentinel -Wstrict-overflow=5 -Wswitch-default -Wundef -Wno-unused") end + + -- run windows program with wine on linux + if is_host("linux") and is_os("windows") then + on_run(function(target) + os.cd("test") + os.runv("wine", {target:targetfile()}) + end) + end +