From 2f8f230f617c4de1a2bd75352f4777f3592a1916 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 3 Sep 2010 15:38:12 +0200 Subject: build: Added support to find argp on BSD. --- tests/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 29986631..64811e29 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,18 +1,22 @@ project(tests C) +if (${CMAKE_SYSTEM_NAME} MATCHES "(OpenBSD|FreeBSD)") + find_package(Argp) +endif (${CMAKE_SYSTEM_NAME} MATCHES "(OpenBSD|FreeBSD)") set(TORTURE_LIBRARY torture) include_directories( ${LIBSSH_PUBLIC_INCLUDE_DIRS} ${CHECK_INCLUDE_DIRS} + ${ARGP_INCLUDE_DIRS} ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ) # create test library add_library(${TORTURE_LIBRARY} SHARED torture.c cmdline.c) -target_link_libraries(${TORTURE_LIBRARY} ${CHECK_LIBRARIES} ${LIBSSH_STATIC_LIBRARY} ${LIBSSH_LINK_LIBRARIES}) +target_link_libraries(${TORTURE_LIBRARY} ${CHECK_LIBRARIES} ${LIBSSH_STATIC_LIBRARY} ${LIBSSH_LINK_LIBRARIES} ${ARGP_LIBRARIES}) set(TEST_TARGET_LIBRARIES ${SUPPORT_LIBRARY} ${LIBSSH_LINK_LIBRARIES}) -- cgit