在 3.9 版被加入.
Compile CUDA sources to .ptx files instead of .obj files within 物件程式庫.
.ptx
.obj
For example:
add_library(myptx OBJECT a.cu b.cu) set_property(TARGET myptx PROPERTY CUDA_PTX_COMPILATION ON)
CUDA_OPTIX_COMPILATION
CUDA_RESOLVE_DEVICE_SYMBOLS