diff --git a/.gitignore b/.gitignore index 5b861d3..27d53f0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ build .vs .cache +.xmake cmake-* \ No newline at end of file diff --git a/xmake.lua b/xmake.lua new file mode 100644 index 0000000..2506f80 --- /dev/null +++ b/xmake.lua @@ -0,0 +1,12 @@ +add_rules("mode.debug", "mode.release") +set_languages("c++17") +if is_plat("windows") then + add_cxxflags("/source-charset:utf-8") +end +if is_mode("debug") then + set_suffixname("d") +end +add_includedirs(path.join(os.scriptdir(), "include"), {public = true}) +target("ofen") + set_kind("static") + add_files("src/*.cpp") \ No newline at end of file