When just changing source files you shouldn’t run cmake again. Just call make. That’s the whole point of having a build system.
What do you use in the code for logging? During development I’d just use printf(). In order to see the result you should run darktable from the mingw64 shell you compiled it in. The cmd.exe coming with Windows is crap.