1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-01 11:26:52 +03:00

cmake: Fixed test includes and libraries.

This commit is contained in:
Andreas Schneider
2010-12-29 20:11:00 +01:00
parent d4a6c27a83
commit ad231ccd30

View File

@ -4,14 +4,14 @@ set(TORTURE_LIBRARY torture)
include_directories( include_directories(
${LIBSSH_PUBLIC_INCLUDE_DIRS} ${LIBSSH_PUBLIC_INCLUDE_DIRS}
${LIBSSH_PRIVATE_INCLUDE_DIRS}
${CMOCKERY_INCLUDE_DIRS} ${CMOCKERY_INCLUDE_DIRS}
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/src
${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}
) )
# create test library # create test library
add_library(${TORTURE_LIBRARY} SHARED torture.c) add_library(${TORTURE_LIBRARY} STATIC torture.c)
target_link_libraries(${TORTURE_LIBRARY} target_link_libraries(${TORTURE_LIBRARY}
${CMOCKERY_LIBRARY} ${CMOCKERY_LIBRARY}
${LIBSSH_STATIC_LIBRARY} ${LIBSSH_STATIC_LIBRARY}
@ -20,7 +20,7 @@ target_link_libraries(${TORTURE_LIBRARY}
${LIBSSH_THREADS_LINK_LIBRARIES} ${LIBSSH_THREADS_LINK_LIBRARIES}
) )
set(TEST_TARGET_LIBRARIES ${SUPPORT_LIBRARY} ${LIBSSH_LINK_LIBRARIES}) set(TEST_TARGET_LIBRARIES ${TORTURE_LIBRARY} ${LIBSSH_LINK_LIBRARIES})
add_subdirectory(unittests) add_subdirectory(unittests)
if (WITH_CLIENT_TESTING) if (WITH_CLIENT_TESTING)