1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-18 11:19:10 +00:00

Add basic regex functionality to plString

This commit is contained in:
2013-01-20 20:44:17 -08:00
parent accf3e3269
commit 56e332a3c3
7 changed files with 105 additions and 4 deletions

21
cmake/FindPCRE.cmake Normal file
View File

@ -0,0 +1,21 @@
if(PCRE_INCLUDE_DIR AND PCRE_LIBRARY)
set(PCRE_FIND_QUIETLY TRUE)
endif()
find_path(PCRE_INCLUDE_DIR pcre.h)
find_library(PCRE_LIBRARY NAMES pcre)
set(PCRE_LIBRARIES ${PCRE_LIBRARY})
if(PCRE_INCLUDE_DIR AND PCRE_LIBRARY)
set(PCRE_FOUND TRUE)
endif()
if(PCRE_FOUND)
if(NOT PCRE_FIND_QUIETLY)
message(STATUS "Found Perl Compatible Regular Expressions library: ${PCRE_INCLUDE_DIR}")
endif()
else()
if(PCRE_FIND_REQUIRED)
message(FATAL_ERROR "Could not find Perl Compatible Regular Expressions library")
endif()
endif()