Using Eclipse CDT with CUDA makefile projects is straightforward after a couple key steps.
- Enable .cu filenames for CDT
- Window -> Preferences -> C/C++ -> File Types
- New... : add .cu as a C Source File type
- Window -> Preferences -> C/C++ -> File Types
- Add Includes for the CUDA and SDK libraries
- Project -> Properties -> C/C++ General -> Path and Symbols
- Add... : CUDA includes for your project
- Project -> Properties -> C/C++ General -> Path and Symbols
- Disable some of the error checking (optional)
- Project -> Properties -> C/C++ General -> Code Analysis
- Syntax and Semantic Errors
- Symbol is not resolved
- Type cannot be resolved
- Field cannot be resolved
- Syntax and Semantic Errors
- Project -> Properties -> C/C++ General -> Code Analysis