Added CMake scripts for CMake tool.
Changed from hard to weak symbols for SPM commands.