There are also ways to do this on Windows and Mac OS X.
This library provides CMake support to do this: https://github.com/motis-project/res