You have two possibilities:
1) Search for a .deb file for raspberry
2) Build it by yourself: https://github.com/bluehazzard/codeblocks_sf/wiki/build_linux_mint_18
I think the file you have downloaded is the source and not the deb file you can simply install
Have you tried
sudo apt install codeblocks
?