freeswitch/cmake_modules/FindLibedit.cmake
Shane Burrell 3634615e2d Initial CMAKE file commit
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11744 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 02:53:31 +00:00

16 lines
546 B
CMake

find_path(PATH_INC_EDIT NAMES "histedit.h" PATHS ${CMAKE_SOURCE_DIR}/libs/libedit/src/)
if( NOT PATH_INC_EDIT )
message(FATAL_ERROR"Unable to locate libedit include files" )
endif( NOT PATH_INC_EDIT )
find_library(PATH_LIB_EDIT NAMES "libedit.a" PATHS ${CMAKE_SOURCE_DIR}/libs/libedit/src/.libs/)
if( NOT PATH_LIB_EDIT )
message(FATAL_ERROR "Unable to locate libedit library file" )
endif( NOT PATH_LIB_EDIT )
MESSAGE( STATUS "PATH_INC_EDIT = \"${PATH_INC_EDIT}\"" )
MESSAGE( STATUS "PATH_LIB_EDIT = \"${PATH_LIB_EDIT}\"" )