summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-02-02 19:47:46 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2017-02-02 19:47:46 +0100
commite423e3c888390450c3f4c7881f8f83f9f58904b0 (patch)
treea474de3787d99d129d3af5ef456e5a30f582db05
parentdc50d7ee6ca044146ddd023a819cd3704400f22c (diff)
downloadcssh-e423e3c888390450c3f4c7881f8f83f9f58904b0.tar.gz
cssh-e423e3c888390450c3f4c7881f8f83f9f58904b0.tar.bz2
added an installation instruction and fixed for out-of-source-builds
-rw-r--r--INSTALL8
-rw-r--r--src/CMakeLists.txt1
2 files changed, 9 insertions, 0 deletions
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"
)