From f7d78e168909a9f298310e16d8b81234ce5fab7f Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Tue, 17 Jun 2008 17:48:00 +0200 Subject: [PATCH] cmake: add libev check --- CMakeLists.txt | 1 + awesomeConfig.cmake | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 056b0dee8..bc693c314 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -118,6 +118,7 @@ TARGET_LINK_LIBRARIES( ${PROJECT_AWE_NAME} ${AWE_MOD_LIBRARIES} ${LUA_LIB} ${LIB_READLINE} ${LIB_NCURSES} + ${LIB_EV} ) TARGET_LINK_LIBRARIES( ${PROJECT_AWECLIENT_NAME} ${AWE_MOD_LIBRARIES} diff --git a/awesomeConfig.cmake b/awesomeConfig.cmake index 13cf36486..dee0456b0 100644 --- a/awesomeConfig.cmake +++ b/awesomeConfig.cmake @@ -54,6 +54,9 @@ pkg_check_modules( AWE_MOD REQUIRED glib-2.0 FIND_LIBRARY( LIB_READLINE readline ) FIND_LIBRARY( LIB_NCURSES ncurses ) +# Check for lobev +FIND_LIBRARY( LIB_EV ev ) + # Check for lua5.1 FIND_PATH(LUA_INC_DIR lua.h /usr/include @@ -76,6 +79,10 @@ IF( NOT LIB_NCURSES ) MESSAGE( FATAL_ERROR "ncurse library not found" ) ENDIF( NOT LIB_NCURSES ) +IF( NOT LIB_EV ) + MESSAGE( FATAL_ERROR "libev not found" ) +ENDIF( NOT LIB_EV ) + IF( NOT LUA_LIB ) MESSAGE( FATAL_ERROR "lua library not found" ) ELSE( LUA_LIB AND LUA_INC_DIR )