aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorHeiko Thiery <heiko.thiery@gmail.com>2020-04-15 09:14:23 +0200
committerAndreas Schneider <asn@cryptomilk.org>2020-05-06 13:02:32 +0200
commitbee8ed82abbc1ee8c631691a131c3d6ec6ba0836 (patch)
treed7a89a4d6b3c060117411c69653a6b34f5ae2c2b /tests
parent4149cebd64a916e934a1485b75f464e26c9bf4ea (diff)
downloadlibssh-bee8ed82abbc1ee8c631691a131c3d6ec6ba0836.tar.gz
libssh-bee8ed82abbc1ee8c631691a131c3d6ec6ba0836.tar.xz
libssh-bee8ed82abbc1ee8c631691a131c3d6ec6ba0836.zip
cmake: Add autogenerated libssh_version.h
Set the cmake project verision to the autogenerated file to have a single point to set the version. This will be included in the libssh.h file. Pair-Programmed-With: Andreas Schneider <asn@cryptomilk.org> Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com> Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt1
-rw-r--r--tests/pkd/CMakeLists.txt1
-rw-r--r--tests/server/CMakeLists.txt1
-rw-r--r--tests/server/test_server/CMakeLists.txt1
4 files changed, 4 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 31a16a39..33a187fb 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -9,6 +9,7 @@ set(TORTURE_LIBRARY torture)
include_directories(${OPENSSL_INCLUDE_DIR}
${CMOCKA_INCLUDE_DIR}
${ZLIB_INCLUDE_DIR}
+ ${libssh_BINARY_DIR}/include
${libssh_BINARY_DIR}
${libssh_SOURCE_DIR}/src
${CMAKE_CURRENT_SOURCE_DIR}
diff --git a/tests/pkd/CMakeLists.txt b/tests/pkd/CMakeLists.txt
index 85a57775..9e550462 100644
--- a/tests/pkd/CMakeLists.txt
+++ b/tests/pkd/CMakeLists.txt
@@ -3,6 +3,7 @@ project(pkd C)
if (WITH_SERVER AND UNIX AND NOT WIN32)
include_directories(${libssh_SOURCE_DIR}/include
+ ${libssh_BINARY_DIR}/include
${CMOCKA_INCLUDE_DIR}
${ZLIB_INCLUDE_DIR}
${CMAKE_BINARY_DIR}
diff --git a/tests/server/CMakeLists.txt b/tests/server/CMakeLists.txt
index 9476ea91..ebe2d169 100644
--- a/tests/server/CMakeLists.txt
+++ b/tests/server/CMakeLists.txt
@@ -13,6 +13,7 @@ set(LIBSSH_SERVER_TESTS
)
include_directories(${libssh_SOURCE_DIR}/include
+ ${libssh_BINARY_DIR}/include
${libssh_BINARY_DIR}
test_server)
diff --git a/tests/server/test_server/CMakeLists.txt b/tests/server/test_server/CMakeLists.txt
index 10bf4b7d..fe5e7d09 100644
--- a/tests/server/test_server/CMakeLists.txt
+++ b/tests/server/test_server/CMakeLists.txt
@@ -17,6 +17,7 @@ set(LIBSSH_SERVER_TESTS
)
include_directories(${libssh_SOURCE_DIR}/include
+ ${libssh_BINARY_DIR}/include
${libssh_BINARY_DIR})
if (ARGP_INCLUDE_DIR)