Is there a flag I can pass nvcc to treat a .cpp file like it would a .cu file? I would rather not have to do a cp x.cpp x.cu; nvcc x.cu; rm x.cu
.
I ask because I have cpp files in my library that I would like to compile with/without CUDA based on particular flags passed to the Makefile.