Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorAntenore Gatta <antenore@simbiosi.org>2020-10-09 16:43:45 +0300
committerAntenore Gatta <antenore@simbiosi.org>2020-10-09 16:43:45 +0300
commit688e947c6be146628d903012699009221fbd379c (patch)
treee458f108f8c6c56acd89103ac4676848e8188d44 /cmake
parent77832afed28899aadf274ef77340a87d66f714e9 (diff)
Implementing text search in the SSH plugin
* Regular expressions * Match case * Wrap around * Whole word Signed-off-by: Antenore Gatta <antenore@simbiosi.org>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindPCRE2.cmake23
1 files changed, 23 insertions, 0 deletions
diff --git a/cmake/FindPCRE2.cmake b/cmake/FindPCRE2.cmake
new file mode 100644
index 000000000..8654b4422
--- /dev/null
+++ b/cmake/FindPCRE2.cmake
@@ -0,0 +1,23 @@
+find_path(PCRE2_INCLUDE_DIR
+ NAMES pcre2.h
+ PATHS ../../../../libs
+ /usr
+ PATH_SUFFIXES include)
+
+find_library(PCRE2_LIBRARY
+ NAMES pcre2-8
+ PATHS ../../../../libs
+ /usr
+ PATH_SUFFIXES lib)
+
+if (PCRE2_INCLUDE_DIR AND PCRE2_LIBRARY)
+ message(STATUS "found pcre2 headers at ${PCRE2_INCLUDE_DIR}")
+ message(STATUS "found pcre2 libraries at ${PCRE2_LIBRARY}")
+ set(PCRE2_INCLUDE_DIRS ${PCRE2_INCLUDE_DIR})
+ set(PCRE2_LIBRARIES ${PCRE2_LIBRARY})
+ set(PCRE2_FOUND yes)
+else()
+ set(PCRE2_INCLUDE_DIRS)
+ set(PCRE2_LIBRARIES)
+ set(PCRE2_FOUND no)
+endif()