Generalize resource generation.
Don't explicitly declare header dependencies.

There's no need to declare header dependencies (if the header isn't
autogenerated), as CMake automatically checks them.
Merge pull request #8 from Ventero/res

Generalize resource generation and simplify CMake file