[CMakeLists] update & tidy CMAKE a lot
[kmutil] bugfix & tidy, refactor roundupX to funcs