Filter the resources which are copied into the generated project

Fix #49