I have my OpenCL kernel source files in a separate directory ("cl") on my file system (Windows 7 machine).
This is no different from having my C++ source files available in yet another directory ("src") on my file system.
Adding them through "Solution:Pop Up Menu>Add Existing Item" puts the files in the respective "OpenCL Files" and "Source Files" container, as expected.
However, the build will fail with an error:
*.cl
The system cannot find the file specified.
This is because the "Solution:Pop Up Menu>Properties:Configuration Properties:Build Events:Post-Build Event" simply states:
copy "*.cl""$(OutDir)\"
I would expect the Post-Build Event to actually check the properties of my OpenCL kernel files, to see where they really are (they are not in the solution directory!!!).
So as a work around, I end up just manually putting a copy of my kernel files in the solution directory. I understand that the kernel files need to be copied to the output directory, so that my actual program can find them, to compile inline. I don't understand why the event just doesn't find them for me?
Am I missing something?