Commit 3ddeae7d authored by PanZezhong's avatar PanZezhong
Browse files

issue/68 测试框架,matmul测例生成

parent 240b1236
......@@ -189,8 +189,12 @@ target("infiniop")
add_installfiles("include/infinicore.h", {prefixdir = "include"})
target_end()
target("all")
set_kind("phony")
add_deps("infiniop", "infinirt")
after_build(function (target) print(YELLOW .. "[Congratulations!] Now you can install the libraries with \"xmake install\"" .. NC) end)
target_end()
-- Tests
includes("xmake/test.lua")
......@@ -8,4 +8,22 @@ target("infiniutils-test")
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()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment