Don't include anything in the templates specific to the file to be built, like #ifdef guards in headers or #include in sources.