From e423e3c888390450c3f4c7881f8f83f9f58904b0 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 2 Feb 2017 19:47:46 +0100 Subject: added an installation instruction and fixed for out-of-source-builds --- INSTALL | 8 ++++++++ src/CMakeLists.txt | 1 + 2 files changed, 9 insertions(+) diff --git a/INSTALL b/INSTALL index 3ac302f..6550e65 100644 --- a/INSTALL +++ b/INSTALL @@ -9,3 +9,11 @@ Building cssh requires: * libssh: implementation of the SSH protocol * gengetopt: for generating the argument parser and the help usage +Installation +------------ + +mkdir build +cd build +cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release .. +make +make install diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e4a23e6..d3b9c21 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 2.6 FATAL_ERROR) include_directories( ${LIBSSH_PUBLIC_INCLUDE_DIRS} + "${PROJECT_BINARY_DIR}/src" "${PROJECT_SOURCE_DIR}/3rdParty/linenoise" ) -- cgit v1.2.3-54-g00ecf