2
0

README 998 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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 build release package with build number 42:
  20. PACKAGE_RELEASE="42" cmake . -DCMAKE_BUILD_TYPE=Release && make package
  21. To buld CMAKE from source
  22. wget https://cmake.org/files/v3.7/cmake-3.7.2.tar.gz
  23. tar -zxvf cmake-3.7.2.tar.gz
  24. cd cmake-3.7.2
  25. ./bootstrap --prefix=/usr/local
  26. make
  27. make install
  28. /usr/local/bin/cmake --version
  29. Centos dependencies:
  30. - yum groupinstall "Development Tools"
  31. - yum install libuuid-devel libatomic openssl-devel