CMake macro definition not recognized by VS2017 IntelliSense
When creating a CUDA project if only a .cu file is present as the source files for an executable/library VS IntelliSense fails to recognize macro definitions from CMakeLists file. In order to work-around this problem a dummy cpp file has to be added.
VS2017 15.4.5 + CUDA 9.1.85 + CMake 3.11.1