cmake/Modules/FindPCRE.cmake
author Tero Marttila <terom@fixme.fi>
Sat, 23 May 2009 00:33:23 +0300
changeset 215 85863b89e38b
parent 121 4682ebbc5644
permissions -rw-r--r--
fix lua_thread_resume_state to not call lua_resume from a CFunction executing in the same state; lua_thread_done is now unprotected...
# Find PCRE
# Once done, this will define:
#
#   PCRE_FOUND
#   PCRE_INCLUDE_DIRS
#   PCRE_LIBRARIES

include (LibFindMacros)

# include dir
find_path (PCRE_INCLUDE_DIR
    NAMES "pcre.h"
)

# library
find_library (PCRE_LIBRARY
    NAMES "pcre"
)

# set the external vars
set (PCRE_PROCESS_INCLUDES PCRE_INCLUDE_DIR)
set (PCRE_PROCESS_LIBS PCRE_LIBRARY)
libfind_process (PCRE)