aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cynapses.org>2010-12-29 20:17:36 +0100
committerAndreas Schneider <asn@cynapses.org>2010-12-29 20:17:36 +0100
commit78abf5a88d8438ae8ab46da7dc8777a145fce2f5 (patch)
tree5daa635df6fe58c4f100a70d76aef3c79365fd37 /tests
parentad231ccd30c5e83deefb412e7d9d78dcd98b2b7b (diff)
downloadlibssh-78abf5a88d8438ae8ab46da7dc8777a145fce2f5.tar.gz
libssh-78abf5a88d8438ae8ab46da7dc8777a145fce2f5.tar.xz
libssh-78abf5a88d8438ae8ab46da7dc8777a145fce2f5.zip
cmake: Added include and library deps to torture.
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt14
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 19823608..d5227b70 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -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)