message(STATUS "LIBSSH_INCLUDE_DIR: ${libssh_INCLUDE_DIR}")
-- LIBSSH_INCLUDE_DIR:
-- Configuring done
-- Generating done
-- Build files have been written to: /home/tynkute/prog/c/tp
[user@name folder]$ sudo make
[ 50%] Linking CXX executable c
/usr/bin/ld: CMakeFiles/c.dir/main.cpp.o: in function `main':
main.cpp:(.text+0x9): undefined reference to `ssh_new'
/usr/bin/ld: main.cpp:(.text+0x27): undefined reference to `ssh_free'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/c.dir/build.make:103: c] Error 1
make[1]: *** [CMakeFiles/Makefile2:95: CMakeFiles/c.dir/all] Error 2
make: *** [Makefile:103: all] Error 2