Well I didn’t know how to describe it in the title but what I am looking is this ::
Currently for making a new project in CUDA, I copy a template project from the CUDA SDK and change the codes/codefiles/Makefile appropriately. But till now I have all of my codefiles in the same folder. src/myCUDA_project/. Is there any way I could have my codefiles inside folders ? Like this ::
src/myCUDA_project/Code1Folder/Code1.h src/myCUDA_project/Code1Folder/Code1.cpp src/myCUDA_project/Code1Folder/Code1_kernels.cu src/myCUDA_project/Code2Folder/Code2.h src/myCUDA_project/Code2Folder/Code2.cpp src/myCUDA_project/main.cpp
I have tried it with having the Makefile set as ::
CUFILES := Code1Folder/Code1_kernels.cu CCFILES := main.cpp \ Code1Folder/Code1.cpp \ Code2Folder/Code2.cpp CCDEPS := Code1Folder/Code1.h \ Code2Folder/Code2.h
But I receive ::
make: *** No rule to make target `obj/x86_64/release/Code1_kernels.cu.o', needed by `../../bin/linux/release/myCUDA_project'. Stop.