Migrating to CMake form Code:blocks