Move some commands from ./CMakeLists.txt to Source/cmake