fix xmake target

This commit is contained in:
2025-02-26 10:12:58 +01:00
parent 37ff881819
commit b77c650fdf

View File

@@ -47,9 +47,16 @@ end
target("SimpleProtocolLib")
add_includedirs("include")
add_headerfiles("include/(sp/common/**.h)", "include/(sp/common/**.h)", "include/(sp/common/**.h)")
add_files("src/sp/**.cpp")
local includeFolders = {"common", "default", "io", "protocol"}
for _, folder in ipairs(includeFolders) do
add_headerfiles("include/(sp/" .. folder .. "/**.h)")
end
-- we don't want extensions
remove_files("src/sp/extensions/**.cpp")
set_group("Library")
add_files("src/sp/common/*.cpp")
set_kind("$(kind)")
-- Tests