Created by: GeorgeIvlev
- Added support for dynamic detection of linux distribution for configuration of CPack for RPM and DEB packages.
- Remove non needed parts from main CMakeLists.txt to utils.cmake and packaging.cmake helper files.
- Added "build" folder to .gitignore file.
Note: Checked on Debian, Ubuntu, Fedora, CentOS. Fedora and CentOS users still need to install rpmbuild package ( yum install rpm-build
)
This is a reopened version of https://github.com/OpenXRay/xray-16/pull/621