applied cmake into decorator