forked from kokke/tiny-regex-c
-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
38 lines (31 loc) · 950 Bytes
/
CMakeLists.txt
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
cmake_minimum_required(VERSION 3.10)
set(CMAKE_C_STANDARD 17)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_C_EXTENSIONS OFF)
option(TINY_REGEX_C_DOT_MATCHES_NEWLINE "'.' matches '\r' + '\n'" ON)
option(TINY_REGEX_C_RECURSIVE_MATCHING "Enable recursive matching" OFF)
if(!TINY_REGEX_C_DOT_MATCHES_NEWLINE)
add_definitions(-DRE_DOT_MATCHES_NEWLINE=0)
endif()
if(TINY_REGEX_C_RECURSIVE_MATCHING)
add_definitions(-DRECURSIVE_RE)
endif()
project(TinyRegexC
VERSION
"0.0.0"
DESCRIPTION
"Small, portable regex pattern matcher in C."
HOMEPAGE_URL
"https://github.com/kokke/tiny-regex-c"
LANGUAGES C)
add_library(TinyRegexC STATIC
re.h
re.c)
target_include_directories(libGimbal
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:>
$<BUILD_INTERFACE:${PROJECT_BINARY_DIR}>
PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}
)