diff options
| author | ruki <[email protected]> | 2019-09-19 00:55:37 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-09-18 23:33:46 +0800 |
| commit | 336029c68e4d0fc58bb55dca3ce5fb62bfdbf41b (patch) | |
| tree | 68072128ac59708b7f56615e626d87e30ed951e2 /xmake/templates/cuda/shared | |
| parent | bb3455b845e0b776937283b3ddae4ae557eea52e (diff) | |
rewrite templates
Diffstat (limited to 'xmake/templates/cuda/shared')
| -rw-r--r-- | xmake/templates/cuda/shared/project/xmake.lua | 7 | ||||
| -rw-r--r-- | xmake/templates/cuda/shared/template.lua | 16 |
2 files changed, 5 insertions, 18 deletions
diff --git a/xmake/templates/cuda/shared/project/xmake.lua b/xmake/templates/cuda/shared/project/xmake.lua index ceef4438d..8f854764f 100644 --- a/xmake/templates/cuda/shared/project/xmake.lua +++ b/xmake/templates/cuda/shared/project/xmake.lua @@ -3,14 +3,11 @@ add_rules("mode.debug", "mode.release") -- define target -target("[targetname]") +target("${TARGETNAME}") -- set kind set_kind("shared") - -- add modes: debug and release - add_rules("mode.debug", "mode.release") - -- add include dirs add_includedirs("inc") @@ -34,3 +31,5 @@ target("[targetname]") -- -- generate PTX code from the highest SM architecture to guarantee forward-compatibility -- add_cugencodes("compute_75") + +${FAQ} diff --git a/xmake/templates/cuda/shared/template.lua b/xmake/templates/cuda/shared/template.lua index 6df920968..d7ec5bae4 100644 --- a/xmake/templates/cuda/shared/template.lua +++ b/xmake/templates/cuda/shared/template.lua @@ -1,14 +1,2 @@ --- set name -set_name("shared") - --- set description -set_description("The Shared Library") - --- set project directory -set_projectdir("project") - --- add macros -add_macros("targetname", "$(targetname)") - --- add macro files -add_macrofiles("xmake.lua")
\ No newline at end of file +template("shared") + add_configfiles("xmake.lua") |
