Using CMake with CUDA

Hello, I have a cuda file (.cu) which does not have a main point of entry. I am able to compile it on the terminal using nvcc and a bunch of nvcc compile options to a .cubin (CUDA binary).

Could someone please tell me how I can do that in CMake. I am able to go from .cu to .ptx (an intermediate object), but not .cu to .cubin. What commands do I have to use in my CMakeLists.txt. I know that you can either use FindCUDA (deprecated) or the built-in CUDA language support to use CUDA. I am using the built-in CUDA language support and CMake 3.17. What commands to I need to compile my .cu file to a .cubin.

Thank you.