From b77c650fdf7fee13016bf537763bdf31e92d014d Mon Sep 17 00:00:00 2001 From: Persson-dev Date: Wed, 26 Feb 2025 10:12:58 +0100 Subject: [PATCH] fix xmake target --- xmake.lua | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/xmake.lua b/xmake.lua index 6bd68e8..79ca7d5 100644 --- a/xmake.lua +++ b/xmake.lua @@ -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