add CMake files
Restaure test in cmake (removed for training purpose)
Add KWstyle to check coding rules
Fix path in kwstyle command invoke by ctest.

Hardcode path: should be improved.
Fixed test.