What you want to achieve is known in "make" lingvo as a "custom build rule". This feature is intentionally disabled in CMake.
The link here http://www.cmake.org/pipermail/cmake/2010-June/037733.html suggests what you could do:
define a function that generates a custom command for its argument, then explicitly apply this function for each source file with extension cogc
.