1
1
Этот коммит содержится в:
Andreas Schneider 2011-09-23 08:00:25 +02:00
родитель dad35304b6
Коммит 8a3b02f68d
4 изменённых файлов: 29 добавлений и 21 удалений

Просмотреть файл

@ -44,9 +44,9 @@ include(MacroAddPlugin)
include(MacroCopyFile) include(MacroCopyFile)
# search for libraries # search for libraries
if (WITH_LIBZ) if (WITH_ZLIB)
find_package(ZLIB REQUIRED) find_package(ZLIB REQUIRED)
endif (WITH_LIBZ) endif (WITH_ZLIB)
if (WITH_GCRYPT) if (WITH_GCRYPT)
find_package(GCrypt REQUIRED) find_package(GCrypt REQUIRED)
@ -101,7 +101,7 @@ endif (WITH_TESTING)
message(STATUS "********************************************") message(STATUS "********************************************")
message(STATUS "********** ${PROJECT_NAME} build options : **********") message(STATUS "********** ${PROJECT_NAME} build options : **********")
message(STATUS "zlib support: ${WITH_LIBZ}") message(STATUS "zlib support: ${WITH_ZLIB}")
message(STATUS "libgcrypt support: ${WITH_GCRYPT}") message(STATUS "libgcrypt support: ${WITH_GCRYPT}")
message(STATUS "SSH-1 support: ${WITH_SSH1}") message(STATUS "SSH-1 support: ${WITH_SSH1}")
message(STATUS "SFTP support: ${WITH_SFTP}") message(STATUS "SFTP support: ${WITH_SFTP}")

Просмотреть файл

@ -140,7 +140,6 @@ set(LIBSSH_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} CACHE INTERNAL "libssh
# LIBRARIES # LIBRARIES
if (OPENSSL_FOUND) if (OPENSSL_FOUND)
set(HAVE_LIBCRYPTO 1) set(HAVE_LIBCRYPTO 1)
endif (OPENSSL_FOUND) endif (OPENSSL_FOUND)
if (GCRYPT_FOUND) if (GCRYPT_FOUND)

Просмотреть файл

@ -13,9 +13,9 @@ option(WITH_CLIENT_TESTING "Build with client tests; requires a running sshd" OF
option(WITH_BENCHMARKS "Build benchmarks tools" OFF) option(WITH_BENCHMARKS "Build benchmarks tools" OFF)
if (WITH_ZLIB) if (WITH_ZLIB)
set(WITH_ZLIB ON) set(WITH_LIBZ ON)
else (WITH_ZLIB) else (WITH_ZLIB)
set(WITH_ZLIB OFF) set(WITH_LIBZ OFF)
endif (WITH_ZLIB) endif (WITH_ZLIB)
if(WITH_BENCHMARKS) if(WITH_BENCHMARKS)

Просмотреть файл

@ -8,25 +8,10 @@ set(LIBSSH_PUBLIC_INCLUDE_DIRS
set(LIBSSH_PRIVATE_INCLUDE_DIRS set(LIBSSH_PRIVATE_INCLUDE_DIRS
${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}
${OPENSSL_INCLUDE_DIRS} ${OPENSSL_INCLUDE_DIRS}
${GCRYPT_INCLUDE_DIRS}
${ZLIB_INCLUDE_DIRS}
) )
set(LIBSSH_SHARED_LIBRARY
ssh_shared
CACHE INTERNAL "libssh shared library"
)
if (WITH_STATIC_LIB)
set(LIBSSH_STATIC_LIBRARY
ssh_static
CACHE INTERNAL "libssh static library"
)
endif (WITH_STATIC_LIB)
set(LIBSSH_LINK_LIBRARIES set(LIBSSH_LINK_LIBRARIES
${LIBSSH_REQUIRED_LIBRARIES} ${LIBSSH_REQUIRED_LIBRARIES}
${ZLIB_LIBRARIES}
) )
if (WIN32) if (WIN32)
@ -67,11 +52,35 @@ if (GCRYPT_LIBRARY)
) )
endif (GCRYPT_LIBRARY) endif (GCRYPT_LIBRARY)
if (WITH_ZLIB)
set(LIBSSH_PRIVATE_INCLUDE_DIRS
${LIBSSH_PRIVATE_INCLUDE_DIRS}
${ZLIB_INCLUDE_DIRS}
)
set(LIBSSH_LINK_LIBRARIES
${LIBSSH_LINK_LIBRARIES}
${ZLIB_LIBRARY}
)
endif (WITH_ZLIB)
set(LIBSSH_LINK_LIBRARIES set(LIBSSH_LINK_LIBRARIES
${LIBSSH_LINK_LIBRARIES} ${LIBSSH_LINK_LIBRARIES}
CACHE INTERNAL "libssh link libraries" CACHE INTERNAL "libssh link libraries"
) )
set(LIBSSH_SHARED_LIBRARY
ssh_shared
CACHE INTERNAL "libssh shared library"
)
if (WITH_STATIC_LIB)
set(LIBSSH_STATIC_LIBRARY
ssh_static
CACHE INTERNAL "libssh static library"
)
endif (WITH_STATIC_LIB)
set(libssh_SRCS set(libssh_SRCS
agent.c agent.c
auth.c auth.c