mirror of
https://github.com/libssh2/libssh2.git
synced 2025-07-02 22:02:25 +03:00
Add a small project to test dependent/downstream CMake build using libssh2. Also added to the GHA CI, and you can also run it locally with `tests/cmake/test.sh`. Test three methods of integrating libssh2 into a project: - via `find_package()`: https://cmake.org/cmake/help/latest/command/find_package.html - via `add_subdirectory()`: https://cmake.org/cmake/help/latest/command/add_subdirectory.html - via `FetchContent`: https://cmake.org/cmake/help/latest/module/FetchContent.html Closes #1170
14 lines
217 B
C
14 lines
217 B
C
/* Copyright (C) Viktor Szakats
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#include "libssh2.h"
|
|
#include <stdio.h>
|
|
|
|
int main(void)
|
|
{
|
|
printf("libssh2_version(0): |%s|\n", libssh2_version(0));
|
|
return 0;
|
|
}
|