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

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

target("lib")
    set_kind("shared")
    add_files("src/lib.cu")
    add_includedirs("inc", {public = true})

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