create a VS2013 project with cuda options via cmake

210 Views Asked by At

I'm working with a CUDA project. I see there're options like CUDA C/C++ and CUDA Linker when the project is created using CUDA project wizard.

I wonder if it's possible to create such project with cmake?

The command

cmake -G "Visual Studio 12 2013" ..

just creates a normal c++ project that has no CUDA option.

enter image description here

1

There are 1 best solutions below

0
On

From my understanding you are trying to use CMake in a way it is not designed to. You should adjust all project properties using FindCUDA and then won't need to access any in Visual Studio.

From this question and it's answer I gather that CMake is not able to create these options.