aboutsummaryrefslogtreecommitdiff
path: root/tests/CMakeLists.txt
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cynapses.org>2010-09-03 15:38:12 +0200
committerAndreas Schneider <asn@cynapses.org>2010-09-03 15:38:12 +0200
commit2f8f230f617c4de1a2bd75352f4777f3592a1916 (patch)
tree6b539a5264f05ed97a6ae7f678fed9800f0076a0 /tests/CMakeLists.txt
parent285388409f1e1220514cb161a2c17018c3d3de51 (diff)
downloadlibssh-2f8f230f617c4de1a2bd75352f4777f3592a1916.tar.gz
libssh-2f8f230f617c4de1a2bd75352f4777f3592a1916.tar.xz
libssh-2f8f230f617c4de1a2bd75352f4777f3592a1916.zip
build: Added support to find argp on BSD.
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r--tests/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
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})