2
0

README 1021 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. To build use cmake (Minimum version 3.7.2):
  2. cmake .
  3. make
  4. To install:
  5. make install
  6. To un-install:
  7. make uninstall
  8. To build debug (no optimizations, symbols - this is the default):
  9. cmake . -DCMAKE_BUILD_TYPE=Debug
  10. make
  11. To build release (optimizations, symbols):
  12. cmake . -DCMAKE_BUILD_TYPE=Release
  13. make
  14. To build to a custom installation prefix (default is /usr):
  15. cmake . -DCMAKE_INSTALL_PREFIX:PATH=/usr
  16. make
  17. To build with openssl on non-standard location (e.g. on Mac):
  18. OPENSSL_ROOT_DIR=/usr/local/opt/openssl cmake . -DCMAKE_INSTALL_PREFIX:PATH=/usr/local
  19. To run tests:
  20. ctest .
  21. To build release package with build number 42:
  22. PACKAGE_RELEASE="42" cmake . -DCMAKE_BUILD_TYPE=Release && make package
  23. To buld CMAKE from source
  24. wget https://cmake.org/files/v3.7/cmake-3.7.2.tar.gz
  25. tar -zxvf cmake-3.7.2.tar.gz
  26. cd cmake-3.7.2
  27. ./bootstrap --prefix=/usr/local
  28. make
  29. make install
  30. /usr/local/bin/cmake --version
  31. Centos dependencies:
  32. - yum groupinstall "Development Tools"
  33. - yum install libuuid-devel libatomic openssl-devel