tst_cryptokey.pro 615 B

12345678910111213141516171819202122232425
  1. include(../tests.pri)
  2. SOURCES += tst_cryptokey.cpp \
  3. $${SRC}/utils/CryptoKey.cpp \
  4. $${SRC}/utils/SecureRNG.cpp
  5. unix {
  6. !isEmpty(OPENSSLDIR) {
  7. INCLUDEPATH += $${OPENSSLDIR}/include
  8. LIBS += -L$${OPENSSLDIR}/lib -lcrypto
  9. } else {
  10. CONFIG += link_pkgconfig
  11. PKGCONFIG += libcrypto
  12. }
  13. }
  14. win32 {
  15. isEmpty(OPENSSLDIR):error(You must pass OPENSSLDIR=path/to/openssl to qmake on this platform)
  16. INCLUDEPATH += $${OPENSSLDIR}/include
  17. LIBS += -L$${OPENSSLDIR}/lib -llibeay32
  18. # required by openssl
  19. LIBS += -lUser32 -lGdi32 -ladvapi32
  20. }
  21. macx:LIBS += -lcrypto