I work with CUDA 8.0 and Visual Studio 2013. So far I have created VS solutions with CMake and it works very well. Typically, a cuda project is created with the following code snippet:
FIND_PACKAGE(CUDA REQUIRED)
INCLUDE_DIRECTORIES( ${CUDA_INCLUDE_DIRS})
link_directories(${CUDA_INCLUDE_DIRS}/../lib/x64)
The CUDA project works, compiles and works without problems. But I do not see the CUDA C / C ++ field in the project properties. When I create a VS solution directly in VS, I can select NVIDIA / CUDA 8.0 and the properties there (as you can see in the picture below)

Question:
My question is: is it possible to create a project using CMake and with the project parameter of the CUDA properties?
Thank you and I hope my question is clear.
source
share