mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-03-24 20:40:09 +09:00
cmake: Added include and library deps to torture.
This commit is contained in:
@@ -4,8 +4,11 @@ set(TORTURE_LIBRARY torture)
|
||||
|
||||
include_directories(
|
||||
${LIBSSH_PUBLIC_INCLUDE_DIRS}
|
||||
${LIBSSH_PRIVATE_INCLUDE_DIRS}
|
||||
${CMOCKERY_INCLUDE_DIRS}
|
||||
${OPENSSL_INCLUDE_DIRS}
|
||||
${GCRYPT_INCLUDE_DIRS}
|
||||
${ZLIB_INCLUDE_DIRS}
|
||||
${CMAKE_BINARY_DIR}
|
||||
${CMAKE_SOURCE_DIR}/src
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
@@ -20,7 +23,14 @@ target_link_libraries(${TORTURE_LIBRARY}
|
||||
${LIBSSH_THREADS_LINK_LIBRARIES}
|
||||
)
|
||||
|
||||
set(TEST_TARGET_LIBRARIES ${TORTURE_LIBRARY} ${LIBSSH_LINK_LIBRARIES})
|
||||
set(TEST_TARGET_LIBRARIES
|
||||
${TORTURE_LIBRARY}
|
||||
${CMOCKERY_LIBRARY}
|
||||
${LIBSSH_STATIC_LIBRARY}
|
||||
${LIBSSH_LINK_LIBRARIES}
|
||||
${LIBSSH_THREADS_STATIC_LIBRARY}
|
||||
${LIBSSH_THREADS_LINK_LIBRARIES}
|
||||
)
|
||||
|
||||
add_subdirectory(unittests)
|
||||
if (WITH_CLIENT_TESTING)
|
||||
|
||||
Reference in New Issue
Block a user