Changeset View
Changeset View
Standalone View
Standalone View
plugins/qca-ossl/CMakeLists.txt
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | 9 | if(OPENSSL_FOUND) | |||
---|---|---|---|---|---|
51 | my_automoc( QCA_OSSL_SOURCES ) | 51 | my_automoc( QCA_OSSL_SOURCES ) | ||
52 | 52 | | |||
53 | add_library(qca-ossl ${PLUGIN_TYPE} ${QCA_OSSL_SOURCES}) | 53 | add_library(qca-ossl ${PLUGIN_TYPE} ${QCA_OSSL_SOURCES}) | ||
54 | 54 | | |||
55 | if(APPLE AND ${PLUGIN_TYPE} STREQUAL "MODULE") | 55 | if(APPLE AND ${PLUGIN_TYPE} STREQUAL "MODULE") | ||
56 | set_property(TARGET qca-ossl PROPERTY SUFFIX ".dylib") | 56 | set_property(TARGET qca-ossl PROPERTY SUFFIX ".dylib") | ||
57 | endif() | 57 | endif() | ||
58 | 58 | | |||
59 | include_directories(${OPENSSL_INCLUDE_DIR}) | | |||
60 | target_link_libraries(qca-ossl ${QT_QTCORE_LIBRARY}) | 59 | target_link_libraries(qca-ossl ${QT_QTCORE_LIBRARY}) | ||
61 | target_link_libraries(qca-ossl ${QCA_LIB_NAME}) | 60 | target_link_libraries(qca-ossl ${QCA_LIB_NAME}) | ||
62 | target_link_libraries(qca-ossl ${OPENSSL_LIBRARIES}) | 61 | target_link_libraries(qca-ossl OpenSSL::SSL OpenSSL::Crypto) | ||
63 | | ||||
64 | if(APPLE) | | |||
65 | target_link_libraries(qca-ossl crypto) | | |||
66 | endif(APPLE) | | |||
67 | | ||||
68 | if(WIN32) | | |||
69 | add_definitions(-DOSSL_097) | | |||
70 | target_link_libraries(qca-ossl gdi32) | | |||
71 | target_link_libraries(qca-ossl wsock32) | | |||
72 | target_link_libraries(qca-ossl ${OPENSSL_EAY_LIBRARIES}) | | |||
73 | endif(WIN32) | | |||
74 | 62 | | |||
75 | if(NOT DEVELOPER_MODE) | 63 | if(NOT DEVELOPER_MODE) | ||
76 | install(TARGETS qca-ossl | 64 | install(TARGETS qca-ossl | ||
77 | LIBRARY DESTINATION "${QCA_CRYPTO_INSTALL_DIR}" | 65 | LIBRARY DESTINATION "${QCA_CRYPTO_INSTALL_DIR}" | ||
78 | ARCHIVE DESTINATION "${QCA_CRYPTO_INSTALL_DIR}" | 66 | ARCHIVE DESTINATION "${QCA_CRYPTO_INSTALL_DIR}" | ||
79 | RUNTIME DESTINATION "${QCA_CRYPTO_INSTALL_DIR}") | 67 | RUNTIME DESTINATION "${QCA_CRYPTO_INSTALL_DIR}") | ||
80 | 68 | | |||
81 | install_pdb(qca-ossl ${QCA_CRYPTO_INSTALL_DIR}) | 69 | install_pdb(qca-ossl ${QCA_CRYPTO_INSTALL_DIR}) | ||
82 | endif() | 70 | endif() | ||
83 | 71 | | |||
84 | else(OPENSSL_FOUND) | 72 | else(OPENSSL_FOUND) | ||
85 | disable_plugin("ossl") | 73 | disable_plugin("ossl") | ||
86 | endif(OPENSSL_FOUND) | 74 | endif(OPENSSL_FOUND) |