1
1
libssh/tests/server/test_server/CMakeLists.txt
Aris Adamantiadis f890b09edb cmake: fix build problem on ubuntu 18.04
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be>
2019-02-07 19:16:03 +01:00

39 строки
816 B
CMake

project(test_server C)
if (WITH_SERVER AND UNIX AND NOT WIN32)
find_package(socket_wrapper)
set(server_SRCS
main.c
)
add_library(testserver STATIC
test_server.c
default_cb.c)
set(LIBSSH_SERVER_TESTS
# torture_server_kbdint
)
include_directories(
${LIBSSH_PUBLIC_INCLUDE_DIRS}
${CMAKE_BINARY_DIR}
)
if (ARGP_INCLUDE_DIR)
include_directories(${ARGP_INCLUDE_DIR})
endif ()
if (UNIX AND NOT WIN32)
add_executable(test_server ${server_SRCS})
target_compile_options(test_server PRIVATE ${DEFAULT_C_COMPILE_FLAGS})
target_link_libraries(test_server
testserver
${LIBSSH_SHARED_LIBRARY}
${ARGP_LIBRARY}
util)
endif ()
endif (WITH_SERVER AND UNIX AND NOT WIN32)