Added some definitions in cmake, not work yet