File: regex.cmake

package info (click to toggle)
wxpython4.0 4.2.3%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 221,752 kB
  • sloc: cpp: 962,555; python: 230,573; ansic: 170,731; makefile: 51,756; sh: 9,342; perl: 1,564; javascript: 584; php: 326; xml: 200
file content (50 lines) | stat: -rw-r--r-- 2,182 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#############################################################################
# Name:        build/cmake/lib/regex.cmake
# Purpose:     Use external or internal regex lib
# Author:      Tobias Taschner
# Created:     2016-09-25
# Copyright:   (c) 2016 wxWidgets development team
# Licence:     wxWindows licence
#############################################################################

if(wxUSE_REGEX STREQUAL "builtin")
    # TODO: implement building PCRE2 via its CMake file, using
    # add_subdirectory or ExternalProject_Add
    wx_add_builtin_library(wxregex
        3rdparty/pcre/src/pcre2_auto_possess.c
        3rdparty/pcre/src/pcre2_compile.c
        3rdparty/pcre/src/pcre2_config.c
        3rdparty/pcre/src/pcre2_context.c
        3rdparty/pcre/src/pcre2_convert.c
        3rdparty/pcre/src/pcre2_dfa_match.c
        3rdparty/pcre/src/pcre2_error.c
        3rdparty/pcre/src/pcre2_extuni.c
        3rdparty/pcre/src/pcre2_find_bracket.c
        3rdparty/pcre/src/pcre2_jit_compile.c
        3rdparty/pcre/src/pcre2_maketables.c
        3rdparty/pcre/src/pcre2_match.c
        3rdparty/pcre/src/pcre2_match_data.c
        3rdparty/pcre/src/pcre2_newline.c
        3rdparty/pcre/src/pcre2_ord2utf.c
        3rdparty/pcre/src/pcre2_pattern_info.c
        3rdparty/pcre/src/pcre2_script_run.c
        3rdparty/pcre/src/pcre2_serialize.c
        3rdparty/pcre/src/pcre2_string_utils.c
        3rdparty/pcre/src/pcre2_study.c
        3rdparty/pcre/src/pcre2_substitute.c
        3rdparty/pcre/src/pcre2_substring.c
        3rdparty/pcre/src/pcre2_tables.c
        3rdparty/pcre/src/pcre2_ucd.c
        3rdparty/pcre/src/pcre2_valid_utf.c
        3rdparty/pcre/src/pcre2_xclass.c
        3rdparty/pcre/src/pcre2_chartables.c
    )
    set(REGEX_LIBRARIES wxregex)
    set(REGEX_INCLUDE_DIRS ${wxSOURCE_DIR}/3rdparty/pcre/src/wx)
    target_compile_definitions(wxregex PRIVATE __WX__ HAVE_CONFIG_H)
    target_include_directories(wxregex PRIVATE ${wxSETUP_HEADER_PATH} ${wxSOURCE_DIR}/include ${REGEX_INCLUDE_DIRS})
elseif(wxUSE_REGEX)
    find_package(PCRE2 REQUIRED)
    set(REGEX_LIBRARIES ${PCRE2_LIBRARIES})
    set(REGEX_INCLUDE_DIRS ${PCRE2_INCLUDE_DIRS})
endif()