CUDA with CMake Simple CUDA building with cmake. Make sure you have CMake version >3.8. It can be downloaded from here. To build simply run: mkdir build && cd build cmake .. make Code reference from here Tested with CUDA 9.2.