Commit 6e7483b2 authored by Jan Möbius's avatar Jan Möbius
Browse files

Added libpcre for windows finder

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@7837 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 8c0d2055
# - Try to find PCRE
# Once done this will define
#
# PCRE_FOUND - system has PCRE
# PCRE_INCLUDE_DIR - the PCRE include directory
# PCRE_LIBRARY - Link these to use PCRE
#
IF (PCRE_INCLUDE_DIRS)
# Already in cache, be silent
SET(PCRE_FIND_QUIETLY TRUE)
ENDIF (PCRE_INCLUDE_DIRS)
FIND_PATH( PCRE_INCLUDE_DIR pcre.h
PATHS "/usr/include" )
FIND_LIBRARY( PCRE_LIBRARY
NAMES pcrecpp
PATHS /lib /usr/lib /usr/local/lib )
IF (PCRE_INCLUDE_DIR AND PCRE_LIBRARY)
SET(PCRE_FOUND TRUE)
ELSE (PCRE_INCLUDE_DIR AND PCRE_LIBRARY)
SET( PCRE_FOUND FALSE )
ENDIF (PCRE_INCLUDE_DIR AND PCRE_LIBRARY)
# - Try to find PCRE
# Once done this will define
#
# PCRE_FOUND - system has PCRE
# PCRE_INCLUDE_DIR - the PCRE include directory
# PCRE_LIBRARY - Link these to use PCRE
#
IF (PCRE_INCLUDE_DIRS)
# Already in cache, be silent
SET(PCRE_FIND_QUIETLY TRUE)
ENDIF (PCRE_INCLUDE_DIRS)
FIND_PATH( PCRE_INCLUDE_DIR pcre.h
PATHS "/usr/include" "C:/libs/PCRE/include")
if( WIN32 )
FIND_LIBRARY( PCRE_LIBRARY
NAMES pcrecpp.lib
PATHS "C:/libs/PCRE/lib")
else (WIN32)
FIND_LIBRARY( PCRE_LIBRARY
NAMES pcrecpp
PATHS /lib /usr/lib /usr/local/lib )
endif( WIN32)
IF (PCRE_INCLUDE_DIR AND PCRE_LIBRARY)
SET(PCRE_FOUND TRUE)
ELSE (PCRE_INCLUDE_DIR AND PCRE_LIBRARY)
SET( PCRE_FOUND FALSE )
ENDIF (PCRE_INCLUDE_DIR AND PCRE_LIBRARY)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment