Also removes BYPRODUCT dependency on CMake 3.2
Also, move cmake source files into cmake/ to keep them together.