cmake/Modules/FindPCRE.cmake
author Tero Marttila <terom@fixme.fi>
Tue, 28 Apr 2009 20:27:45 +0300
branchnew-transport
changeset 155 c59d3eaff0fb
parent 121 4682ebbc5644
permissions -rw-r--r--
most of the new transport/sock code compiles, but things are still missing
# 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)