Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jerrrrry
infinicore
Commits
3ddeae7d
Commit
3ddeae7d
authored
Mar 14, 2025
by
PanZezhong
Browse files
issue/68 测试框架,matmul测例生成
parent
240b1236
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
xmake.lua
xmake.lua
+4
-0
xmake/test.lua
xmake/test.lua
+18
-0
No files found.
xmake.lua
View file @
3ddeae7d
...
@@ -189,8 +189,12 @@ target("infiniop")
...
@@ -189,8 +189,12 @@ target("infiniop")
add_installfiles
(
"include/infinicore.h"
,
{
prefixdir
=
"include"
})
add_installfiles
(
"include/infinicore.h"
,
{
prefixdir
=
"include"
})
target_end
()
target_end
()
target
(
"all"
)
target
(
"all"
)
set_kind
(
"phony"
)
set_kind
(
"phony"
)
add_deps
(
"infiniop"
,
"infinirt"
)
add_deps
(
"infiniop"
,
"infinirt"
)
after_build
(
function
(
target
)
print
(
YELLOW
..
"[Congratulations!] Now you can install the libraries with \"
xmake
install
\
""
..
NC
)
end
)
after_build
(
function
(
target
)
print
(
YELLOW
..
"[Congratulations!] Now you can install the libraries with \"
xmake
install
\
""
..
NC
)
end
)
target_end
()
target_end
()
-- Tests
includes
(
"xmake/test.lua"
)
xmake/test.lua
View file @
3ddeae7d
...
@@ -8,4 +8,22 @@ target("infiniutils-test")
...
@@ -8,4 +8,22 @@ target("infiniutils-test")
add_files
(
os
.
projectdir
()
..
"/src/utils-test/*.cc"
)
add_files
(
os
.
projectdir
()
..
"/src/utils-test/*.cc"
)
target
(
"infiniop-test"
)
set_kind
(
"binary"
)
add_deps
(
"infini-utils"
)
on_install
(
function
(
target
)
end
)
set_default
(
false
)
local
INFINI_ROOT
=
os.getenv
(
"INFINI_ROOT"
)
or
(
os.getenv
(
is_host
(
"windows"
)
and
"HOMEPATH"
or
"HOME"
)
..
"/.infini"
)
set_languages
(
"cxx17"
)
set_warnings
(
"all"
,
"error"
)
add_includedirs
(
INFINI_ROOT
..
"/include"
)
add_linkdirs
(
INFINI_ROOT
..
"/lib"
)
add_links
(
"infiniop"
,
"infinirt"
)
add_includedirs
(
os
.
projectdir
()
..
"/src/infiniop-test/include"
)
add_files
(
os
.
projectdir
()
..
"/src/infiniop-test/src/*.cpp"
)
add_files
(
os
.
projectdir
()
..
"/src/infiniop-test/src/ops/*.cpp"
)
target_end
()
target_end
()
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment