File tree Expand file tree Collapse file tree 4 files changed +31
-0
lines changed
Expand file tree Collapse file tree 4 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ #include < iostream>
2+
3+
4+ int main ()
5+ {
6+ std::cout << __cplusplus << std::endl;
7+
8+
9+ return 0 ;
10+ }
Original file line number Diff line number Diff line change 1+ target (" TemporaryTest" )
2+ set_kind (" binary" )
3+ add_files (" main.cpp" )
Original file line number Diff line number Diff line change 1+ -- Find all directories in the current list directory
2+ local dirs = os.dirs (" *" )
3+
4+ -- Iterate over directories and check if xmake.lua and .buildme exist
5+ for _ , dir in ipairs (dirs ) do
6+ local xmakeFile = path.join (dir , " xmake.lua" )
7+ local buildmeFile = path.join (dir , " .buildme" )
8+
9+ if os.isdir (dir ) and os.isfile (xmakeFile ) and os.isfile (buildmeFile ) then
10+ -- Add subdirectory as a sub-project in xmake
11+ includes (dir )
12+
13+ end
14+
15+ end
Original file line number Diff line number Diff line change @@ -7,3 +7,6 @@ target ("linux-kernel-module")
77 set_values (" linux.driver.linux-headers" , " $(linux-headers)" )
88
99 add_cflags (" -O1" )
10+
11+
12+ includes (" snippet" )
You can’t perform that action at this time.
0 commit comments