Fixed unit testing.
Этот коммит содержится в:
родитель
eec3532955
Коммит
8bcb835aa4
@ -9,3 +9,7 @@ option(WITH_GCRYPT "Compile against libgcrypt" OFF)
|
||||
option(WITH_PCAP "Compile with Pcap generation support" ON)
|
||||
option(WITH_INTERNAL_DOC "Compile doxygen internal documentation" OFF)
|
||||
option(WITH_TESTING "Build with unit tests" OFF)
|
||||
if (WITH_TESTING)
|
||||
set(WITH_STATIC_LIB ON)
|
||||
endif (WITH_TESTING)
|
||||
|
||||
|
@ -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})
|
||||
|
||||
|
@ -1,5 +1,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <pwd.h>
|
||||
|
||||
#define LIBSSH_STATIC
|
||||
#include <libssh/priv.h>
|
||||
|
||||
#include "torture.h"
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user