cmake module to generate git hooks