[bugfix,cmake] Process dependency tree including the module itself.

One of the latest patches prevent the macros of the current module
form being executed. This patch fixes this by including the module
in the dependency tree.