Cmake building ready
Small fix, and dbg
[Bug] bad condition in main()