[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.
(cherry picked from commit 58d2e446c1a9214966881981105e718c04d11c9e)

Signed-off-by: Markus Blatt <markus@dr-blatt.de>