2010-03-02 15:47:14 +03:00
|
|
|
project(tests C)
|
|
|
|
|
|
|
|
|
|
|
|
set(TORTURE_LIBRARY torture)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${LIBSSH_PUBLIC_INCLUDE_DIRS}
|
|
|
|
${CHECK_INCLUDE_DIRS}
|
|
|
|
${CMAKE_BINARY_DIR}
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
# create test library
|
|
|
|
add_library(${TORTURE_LIBRARY} SHARED torture.c cmdline.c)
|
2010-03-03 01:48:45 +03:00
|
|
|
target_link_libraries(${TORTURE_LIBRARY} ${CHECK_LIBRARIES} ${LIBSSH_STATIC_LIBRARY})
|
2010-03-02 15:47:14 +03:00
|
|
|
|
|
|
|
set(TEST_TARGET_LIBRARIES ${SUPPORT_LIBRARY})
|
|
|
|
|
|
|
|
add_subdirectory(unittests)
|