summaryrefslogtreecommitdiff
path: root/tests/projects/cuda/static/xmake.lua
blob: 5cbc8b90d444faa72c62080d2257452d785df53c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
add_rules("mode.debug", "mode.release")

-- generate PTX code for the virtual architecture to guarantee compatibility
add_cugencodes("compute_30")

target("lib")
    set_kind("static")
    add_cuflags("-rdc=true")
    add_includedirs("inc", {public = true})
    add_files("src/lib.cu")

target("bin")
    add_deps("lib")
    set_kind("binary")
    add_files("src/main.cu")