summaryrefslogtreecommitdiff
path: root/tests/projects/cuda/shared/xmake.lua
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2019-06-11 10:29:15 +0800
committerOpportunityLiu <[email protected]>2019-06-11 10:29:15 +0800
commita4958a1e1f62beff40d4df0c6634236583163707 (patch)
tree916d243b5c2141d660e3e2b0653194a1d08e63a1 /tests/projects/cuda/shared/xmake.lua
parentf42f1b5a97f5fdbac4d74a2e43a32fcc71cee0c3 (diff)
add some tests and templates
Diffstat (limited to 'tests/projects/cuda/shared/xmake.lua')
-rw-r--r--tests/projects/cuda/shared/xmake.lua22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/projects/cuda/shared/xmake.lua b/tests/projects/cuda/shared/xmake.lua
new file mode 100644
index 000000000..268f16dcd
--- /dev/null
+++ b/tests/projects/cuda/shared/xmake.lua
@@ -0,0 +1,22 @@
+
+-- add modes: debug and release
+add_rules("mode.debug", "mode.release")
+
+add_includedirs("inc")
+
+-- generate PTX code for the virtual architecture to guarantee compatibility
+add_cugencodes("compute_30")
+
+-- define target
+target("lib")
+
+ -- set kind
+ set_kind("shared")
+
+ -- add files
+ add_files("src/lib.cu")
+
+target("bin")
+ add_deps("lib")
+ set_kind("binary")
+ add_files("src/main.cu")