Changeset 2334
- Timestamp:
- 01/28/08 21:33:38 (11 months ago)
- Location:
- vidalia/trunk
- Files:
-
- 2 added
- 2 modified
-
CMakeLists.txt (modified) (2 diffs)
-
cmake (added)
-
cmake/FindOpenSSL.cmake (added)
-
src/util/CMakeLists.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
vidalia/trunk/CMakeLists.txt
r2327 r2334 68 68 ## Check for QSslSocket 69 69 check_include_file_cxx("qsslsocket.h" HAVE_QSSLSOCKET_H) 70 if (HAVE_QSSLSOCKET_H)70 if (HAVE_QSSLSOCKET_H) 71 71 check_symbol_exists(QT_NO_OPENSSL "QtGlobal" QT_NO_SSL_SUPPORT) 72 if (NOT QT_NO_SSL_SUPPORT)72 if (NOT QT_NO_SSL_SUPPORT) 73 73 option(USE_QSSLSOCKET "Use Qt's QSslSocket for GeoIP lookups." ON) 74 74 endif(NOT QT_NO_SSL_SUPPORT) 75 75 endif(HAVE_QSSLSOCKET_H) 76 if (USE_QSSLSOCKET) 77 if (MSVC OR UNIX) 78 include(${CMAKE_SOURCE_DIR}/cmake/FindOpenSSL.cmake) 79 endif(MSVC OR UNIX) 80 endif(USE_QSSLSOCKET) 76 81 77 82 ## Write out a configuration file … … 87 92 add_subdirectory(pkg) 88 93 89 ## The 'confclean' target removes cached CMake configuration information90 if (WIN32)91 set(RM_CMD del)92 else (WIN32)93 set(RM_CMD rm)94 endif(WIN32)95 add_custom_target(confclean ${RM_CMD} CMakeCache.txt)96 -
vidalia/trunk/src/util/CMakeLists.txt
r2323 r2334 52 52 target_link_libraries(util ${QT_LIBRARIES}) 53 53 54 if(USE_QSSLSOCKET) 55 target_link_libraries(util) 56 if(UNIX) 57 ## XXX: This is not quite right, since we still may need to link in 58 ## OpenSSL libs on Windows as well, depending on how Qt was built. 59 ## It suffices for the default Qt install on Windows though, until we 60 ## gets some more complex CMake fu in. 61 target_link_libraries(util crypto ssl) 62 endif(UNIX) 63 endif(USE_QSSLSOCKET) 54 if(USE_QSSLSOCKET AND OPENSSL_LIBRARIES) 55 target_link_libraries(util ${OPENSSL_LIBRARIES}) 56 endif(USE_QSSLSOCKET AND OPENSSL_LIBRARIES) 64 57
