Fixing resources reference in cmake config file

Sorry for recommit similar stuff it was a little my mistake, anyway reset just pushed commit in git is a little painful.