aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@lavabit.com>2009-05-09 17:08:45 +0200
committerLars-Dominik Braun <PromyLOPh@lavabit.com>2009-05-09 17:08:45 +0200
commit6ee0df629e43dc783f9bc4058f676fa46bbfb5d9 (patch)
treeea9d4d5af2ac7a55ea137a3364d4243550ad0fb6 /CMakeLists.txt
parentd741ef40b4e9e374cc3660edc8339bd772d5bfef (diff)
downloadmpiosh-6ee0df629e43dc783f9bc4058f676fa46bbfb5d9.tar.gz
mpiosh-6ee0df629e43dc783f9bc4058f676fa46bbfb5d9.tar.bz2
mpiosh-6ee0df629e43dc783f9bc4058f676fa46bbfb5d9.zip
Add cmake library checks
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7114aa3..3077400 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,6 +3,21 @@ cmake_minimum_required (VERSION 2.4)
set (PACKAGE mpiosh)
project (${PACKAGE} C)
+find_library (LIBNCURSES NAMES ncurses)
+find_library (LIBREADLINE NAMES readline)
+
+if (LIBNCURSES)
+ message (STATUS "found ncurses at ${LIBNCURSES}")
+else (LIBNCURSES)
+ message (FATAL_ERROR "ncurses is required")
+endif (LIBNCURSES)
+
+if (LIBREADLINE)
+ message (STATUS "found readline at ${LIBREADLINE}")
+else (LIBREADLINE)
+ message (FATAL_ERROR "readline is required")
+endif (LIBREADLINE)
+
add_subdirectory (libmpio)
add_subdirectory (src)
add_subdirectory (tools)