Currently CMakeLists.txt lacks any installation instruction, which is a bit annoying when you wish to install it in system folders (using make install), this PR fixes that.
Just so you know, I added enet to xmake-repo (the package manager of xmake) and had to patch CMakeLists.txt to fix static-only compilation and installation. Theses changes are part of this PR.
Currently CMakeLists.txt lacks any installation instruction, which is a bit annoying when you wish to install it in system folders (using make install), this PR fixes that.