-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
60 lines (55 loc) · 1.08 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#
# CMakeLists.txt
# Copyright (C) 2023 Marius Greuel
#
cmake_minimum_required(VERSION 3.12)
project(libreadline)
add_library(libreadline STATIC
src/bind.c
src/bind.c
src/display.c
src/histfile.c
src/isearch.c
src/mbutil.c
src/readline.c
src/shell.c
src/tilde.c
src/vi_mode.c
src/callback.c
src/history.c
src/keymaps.c
src/misc.c
src/rltty.c
src/signals.c
src/undo.c
src/xmalloc.c
src/compat.c
src/funmap.c
src/histsearch.c
src/kill.c
src/nls.c
src/savestring.c
src/terminal.c
src/util.c
src/complete.c
src/histexpand.c
src/input.c
src/macro.c
src/parens.c
src/search.c
src/text.c
)
target_include_directories(libreadline
PUBLIC
include
PRIVATE
include/readline
)
target_compile_definitions(libreadline PRIVATE
HAVE_CONFIG_H=1
READLINE_STATIC=1
)
if(MSVC)
target_compile_definitions(libreadline PRIVATE _CRT_NONSTDC_NO_WARNINGS=1 _CRT_SECURE_NO_WARNINGS=1)
target_include_directories(libreadline PRIVATE src/msvc)
endif()