From 6ee0df629e43dc783f9bc4058f676fa46bbfb5d9 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sat, 9 May 2009 17:08:45 +0200 Subject: Add cmake library checks --- CMakeLists.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'CMakeLists.txt') 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) -- cgit v1.2.3