Skip to content

Instantly share code, notes, and snippets.

@Tranquility2
Created February 16, 2024 10:36
Show Gist options
  • Save Tranquility2/2580d04ed111255132341749e87dc5e0 to your computer and use it in GitHub Desktop.
Save Tranquility2/2580d04ed111255132341749e87dc5e0 to your computer and use it in GitHub Desktop.
xmake test with std
set_toolchains("mingw")
set_plat("mingw")
set_arch("x86_64")
add_rules("mode.debug", "mode.release")
target("test")
add_cxflags("-static-libstdc++", "-static-libgcc")
add_ldflags("-static-libstdc++", "-static-libgcc")
set_kind("binary")
add_files("src/*.cpp")
add_includedirs("/home/projects/SFML-2.6.1/include")
add_linkdirs("/home/projects/SFML-2.6.1/lib")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment