fix cmake & resource path resolve