When gradually moving targets and commands to the CMake side, it will be useful to print values of variables using the message command:
message(STATUS "for debugging printing the value of ${some_variable}")
By adding options, targets, sources, and dependencies while debugging using message, we will inch our way towards a working build.