begin packet serialization
This commit is contained in:
31
xmake.lua
31
xmake.lua
@@ -4,13 +4,44 @@ add_repositories("nazara-repo https://github.com/NazaraEngine/xmake-repo.git")
|
||||
add_requires("nazaraengine", { debug = is_mode("debug") })
|
||||
|
||||
set_languages("c++20")
|
||||
set_warnings("all")
|
||||
|
||||
target("BlitzLib")
|
||||
set_kind("static")
|
||||
add_files("src/blitz/**.cpp")
|
||||
add_includedirs("include")
|
||||
add_packages("nazaraengine")
|
||||
|
||||
target("Blitz2")
|
||||
set_kind("binary")
|
||||
add_files("src/*.cpp")
|
||||
add_packages("nazaraengine")
|
||||
add_includedirs("include")
|
||||
add_deps("BlitzLib")
|
||||
set_rundir(".")
|
||||
|
||||
|
||||
|
||||
-- Tests were introduced in that version
|
||||
set_xmakever("2.8.5")
|
||||
|
||||
-- Tests
|
||||
for _, file in ipairs(os.files("test/**.cpp")) do
|
||||
local name = path.basename(file)
|
||||
target(name)
|
||||
set_kind("binary")
|
||||
|
||||
add_includedirs("include", "test")
|
||||
add_files(file)
|
||||
|
||||
set_default(false)
|
||||
|
||||
add_deps("BlitzLib")
|
||||
add_packages("nazaraengine")
|
||||
|
||||
add_tests("compile_and_run")
|
||||
end
|
||||
|
||||
--
|
||||
-- If you want to known more usage about xmake, please see https://xmake.io
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user