Install resources when using CMake (needs improvements), fixes #32