Add resources in compilation phase

[skip ci]