cmake: add libev check

This commit is contained in:
Michael Gehring 2008-06-17 17:48:00 +02:00 committed by Julien Danjou
parent 5b52c148a6
commit f7d78e1689
2 changed files with 8 additions and 0 deletions

View File

@ -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}

View File

@ -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 )