문제

I develop some parallel computing code using CUDA C. The system is running a Ubuntu based Linux, the IDE of choice is Eclipse Indigo.

I set up the project using the template which is delivered with Cuda. I fail to setup subfolder containing portions of code (say "gui", "io", "net") in a such a way, that the compiler (ncc and/or g++) and/or linker recognizes those.

The goal would be to just type "make" and everything is put together.

Perhaps somebody knows a project template or sample makefile which works with directory structures? I don't feel the status quo with its many files (like gui_myclass.c, net_myotherclass.c, ...) in the projects root directory is the way to go.

올바른 솔루션이 없습니다

다른 팁

This question has nothing to do with CUDA. There is a good answer here to the question "how do I generate a makefile with source in subdirectories using just one makefile".

This applies to any command line compiler, nvcc, g++, whatever.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top