File: FindPCRE.cmake

package info (click to toggle)
gnudatalanguage 1.1.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 80,368 kB
  • sloc: cpp: 189,797; ansic: 46,721; sh: 677; python: 474; makefile: 146; xml: 69; f90: 28
file content (24 lines) | stat: -rw-r--r-- 913 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#
# copyright : (c) 2012 Jeongbin Park
#
# 2012/Sep/18 Jeongbin Park added this file; to support Windows platform.
#
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#
# 2018 G Jung: For GDL, Linux is fine with pcre but may require
# ncurses with its readline.  Windows needs another library for its regex stuff.
# gnurx/regex are all derived from libsystre and libtre
    find_library(PCRE_LIBRARY NAMES systre pcre)
set(PCRE_LIBRARIES ${PCRE_LIBRARY})
find_path(PCRE_INCLUDE_DIR NAMES regex.h)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(PCRE DEFAULT_MSG PCRE_LIBRARIES PCRE_INCLUDE_DIR)

mark_as_advanced(
PCRE_LIBRARY
PCRE_LIBRARIES
PCRE_INCLUDE_DIR 
)