mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-12-24 19:37:48 +03:00
Fix compilation and installation of libssh.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@250 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
@@ -59,8 +59,10 @@ add_subdirectory(libssh)
|
||||
# build samples
|
||||
include_directories(${CMAKE_SOURCE_DIR}/include)
|
||||
|
||||
add_executable(samplessh sample.c)
|
||||
add_executable(samplesshd samplesshd.c)
|
||||
if (UNIX AND NOT WIN32)
|
||||
add_executable(samplessh sample.c)
|
||||
add_executable(samplesshd samplesshd.c)
|
||||
|
||||
target_link_libraries(samplessh ${LIBSSH_LIBRARY})
|
||||
target_link_libraries(samplesshd ${LIBSSH_LIBRARY})
|
||||
target_link_libraries(samplessh ${LIBSSH_LIBRARY})
|
||||
target_link_libraries(samplesshd ${LIBSSH_LIBRARY})
|
||||
endif (UNIX AND NOT WIN32)
|
||||
|
||||
@@ -112,13 +112,14 @@ endif (UNIX)
|
||||
|
||||
if (WIN32)
|
||||
# Same same
|
||||
SET(BIN_INSTALL_DIR .)
|
||||
SET(SBIN_INSTALL_DIR .)
|
||||
SET(LIB_INSTALL_DIR .)
|
||||
SET(PLUGIN_INSTALL_DIR plugins)
|
||||
SET(BIN_INSTALL_DIR bin)
|
||||
SET(SBIN_INSTALL_DIR bin)
|
||||
SET(LIB_INSTALL_DIR lib)
|
||||
SET(INCLUDE_INSTALL_DIR include)
|
||||
SET(PLUGIN_INSTALL_DIR bin)
|
||||
SET(HTML_INSTALL_DIR doc/HTML)
|
||||
SET(ICON_INSTALL_DIR .)
|
||||
SET(SOUND_INSTALL_DIR .)
|
||||
SET(LOCALE_INSTALL_DIR lang)
|
||||
SET(ICON_INSTALL_DIR bin)
|
||||
SET(SOUND_INSTALL_DIR bin)
|
||||
SET(LOCALE_INSTALL_DIR bin)
|
||||
endif (WIN32)
|
||||
|
||||
|
||||
@@ -22,6 +22,13 @@ set(LIBSSH_LINK_LIBRARIES
|
||||
${ZLIB_LIBRARIES}
|
||||
)
|
||||
|
||||
if (WIN32)
|
||||
set(LIBSSH_LINK_LIBRARIES
|
||||
${LIBSSH_LINK_LIBRARIES}
|
||||
ws2_32
|
||||
)
|
||||
endif (WIN32)
|
||||
|
||||
if (CRYPTO_LIBRARY)
|
||||
set(LIBSSH_PRIVATE_INCLUDE_DIRS
|
||||
${LIBSSH_PRIVATE_INCLUDE_DIRS}
|
||||
|
||||
Reference in New Issue
Block a user