mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 02:38:09 +09:00
Fixed linking of the tests.
This commit is contained in:
@@ -67,6 +67,11 @@ if (GCRYPT_LIBRARY)
|
|||||||
)
|
)
|
||||||
endif (GCRYPT_LIBRARY)
|
endif (GCRYPT_LIBRARY)
|
||||||
|
|
||||||
|
set(LIBSSH_LINK_LIBRARIES
|
||||||
|
${LIBSSH_LINK_LIBRARIES}
|
||||||
|
CACHE INTERNAL "libssh link libraries"
|
||||||
|
)
|
||||||
|
|
||||||
set(libssh_SRCS
|
set(libssh_SRCS
|
||||||
agent.c
|
agent.c
|
||||||
auth.c
|
auth.c
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ include_directories(
|
|||||||
|
|
||||||
# create test library
|
# create test library
|
||||||
add_library(${TORTURE_LIBRARY} SHARED torture.c cmdline.c)
|
add_library(${TORTURE_LIBRARY} SHARED torture.c cmdline.c)
|
||||||
target_link_libraries(${TORTURE_LIBRARY} ${CHECK_LIBRARIES} ${LIBSSH_STATIC_LIBRARY})
|
target_link_libraries(${TORTURE_LIBRARY} ${CHECK_LIBRARIES} ${LIBSSH_STATIC_LIBRARY} ${LIBSSH_LINK_LIBRARIES})
|
||||||
|
|
||||||
set(TEST_TARGET_LIBRARIES ${SUPPORT_LIBRARY})
|
set(TEST_TARGET_LIBRARIES ${SUPPORT_LIBRARY} ${LIBSSH_LINK_LIBRARIES})
|
||||||
|
|
||||||
add_subdirectory(unittests)
|
add_subdirectory(unittests)
|
||||||
|
|||||||
Reference in New Issue
Block a user