cstool: support CMake
3 files changed