Optix linker error LNK2001 unresolved external symbol

I’m on Windows 11 Visual Studio 2022 and trying to compile a program from github, I get the following errors:

I have cuda.lib in the linker settings and added the path to cuda include already, any help would be much appreciated

Captura de tela 2023-02-24 174309

I have this line in one file:

extern "C" const char DeviceProgram[];
and then below it
const auto ptx = std::string(DeviceProgram);
but I checked and I do have a DeviceProgram.cu file

nevermind I fixed using CMake, couldn’t figure out how to do in VS