cmakeavr - an example (template) for AVR using CMake & MinGW toolchain under Windows Works :) modify files & run bat file to test it.