summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2019-06-11 13:12:47 +0800
committerOpportunityLiu <[email protected]>2019-06-11 13:12:47 +0800
commit35cfc8782c166bb1111472c4732f5c44d8939863 (patch)
tree251e0043c90b0d00da2d50324bdf02bafa10afa8 /tests
parent664dc2e0e8820eab96c2cae5f2e451894bc1fc4b (diff)
clean up git ignore; fix test xmake.lua
Diffstat (limited to 'tests')
-rw-r--r--tests/projects/cuda/shared/.gitignore2
-rw-r--r--tests/projects/cuda/shared/xmake.lua4
-rw-r--r--tests/projects/cuda/static/.gitignore2
-rw-r--r--tests/projects/cuda/static/xmake.lua4
4 files changed, 4 insertions, 8 deletions
diff --git a/tests/projects/cuda/shared/.gitignore b/tests/projects/cuda/shared/.gitignore
deleted file mode 100644
index 173fb6eaf..000000000
--- a/tests/projects/cuda/shared/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-.xmake
-build
diff --git a/tests/projects/cuda/shared/xmake.lua b/tests/projects/cuda/shared/xmake.lua
index 268f16dcd..e96999a13 100644
--- a/tests/projects/cuda/shared/xmake.lua
+++ b/tests/projects/cuda/shared/xmake.lua
@@ -2,8 +2,6 @@
-- 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")
@@ -16,6 +14,8 @@ target("lib")
-- add files
add_files("src/lib.cu")
+ add_includedirs("inc", {public = true})
+
target("bin")
add_deps("lib")
set_kind("binary")
diff --git a/tests/projects/cuda/static/.gitignore b/tests/projects/cuda/static/.gitignore
deleted file mode 100644
index 173fb6eaf..000000000
--- a/tests/projects/cuda/static/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-.xmake
-build
diff --git a/tests/projects/cuda/static/xmake.lua b/tests/projects/cuda/static/xmake.lua
index fd2143bfb..55e1e5fd9 100644
--- a/tests/projects/cuda/static/xmake.lua
+++ b/tests/projects/cuda/static/xmake.lua
@@ -2,8 +2,6 @@
-- 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")
@@ -15,6 +13,8 @@ target("lib")
add_cuflags("-rdc=true")
+ add_includedirs("inc", {public = true})
+
-- add files
add_files("src/lib.cu")