Fixed unit testing.

This commit is contained in:
Andreas Schneider
2010-03-02 23:48:45 +01:00
parent eec3532955
commit 8bcb835aa4
3 changed files with 7 additions and 1 deletions

View File

@@ -12,7 +12,7 @@ include_directories(
# create test library
add_library(${TORTURE_LIBRARY} SHARED torture.c cmdline.c)
target_link_libraries(${TORTURE_LIBRARY} ${CHECK_LIBRARIES} ${LIBSSH_LIBRARY})
target_link_libraries(${TORTURE_LIBRARY} ${CHECK_LIBRARIES} ${LIBSSH_STATIC_LIBRARY})
set(TEST_TARGET_LIBRARIES ${SUPPORT_LIBRARY})

View File

@@ -1,5 +1,7 @@
#include <sys/types.h>
#include <pwd.h>
#define LIBSSH_STATIC
#include <libssh/priv.h>
#include "torture.h"