diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2017-04-27 10:07:36 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2017-04-27 10:07:36 +0200 |
commit | 658a53c6aee000b8846695132e22bb914e6cf7dc (patch) | |
tree | aedbcef11dff013190f3ac8dadfb1d71e990c594 /CMakeLists.txt | |
parent | dc1fb59fd30e76571c9151900a84ac3c814ee167 (diff) | |
download | cssh-658a53c6aee000b8846695132e22bb914e6cf7dc.tar.gz cssh-658a53c6aee000b8846695132e22bb914e6cf7dc.tar.bz2 |
fixed probing for libssh (especially fixes OSX build issues)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a134b6a..b5e5786 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,8 @@ cmake_minimum_required(VERSION 2.6 FATAL_ERROR) set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake") -include(cmake/gengetopt.cmake) +include(cmake/find_gengetopt.cmake) +include(cmake/find_libssh.cmake) project(cssh C) @@ -10,6 +11,9 @@ set( CSSH_VERSION 0.0.1 ) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wall -D_XOPEN_SOURCE=700") +set( libssh_FIND_REQUIRED TRUE) +find_libssh( ) + enable_testing( ) add_subdirectory(3rdParty) |