| 1 |
# Copyright (c) 2006, 2011, Oracle and/or its affiliates. All rights reserved. |
| 2 |
# |
| 3 |
# This program is free software; you can redistribute it and/or modify |
| 4 |
# it under the terms of the GNU General Public License as published by |
| 5 |
# the Free Software Foundation; version 2 of the License. |
| 6 |
# |
| 7 |
# This program is distributed in the hope that it will be useful, |
| 8 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 |
# GNU General Public License for more details. |
| 11 |
# |
| 12 |
# You should have received a copy of the GNU General Public License |
| 13 |
# along with this program; if not, write to the Free Software |
| 14 |
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA |
| 15 |
|
| 16 |
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include ${CMAKE_CURRENT_SOURCE_DIR}) |
| 17 |
|
| 18 |
ADD_DEFINITIONS(-DHAVE_CONFIG_H -DNO_KILL_INTR) |
| 19 |
|
| 20 |
INCLUDE_DIRECTORIES(${CURSES_INCLUDE_PATH}) |
| 21 |
|
| 22 |
ADD_LIBRARY(readline STATIC |
| 23 |
readline.c |
| 24 |
funmap.c |
| 25 |
keymaps.c |
| 26 |
vi_mode.c |
| 27 |
parens.c |
| 28 |
rltty.c |
| 29 |
complete.c |
| 30 |
bind.c |
| 31 |
isearch.c |
| 32 |
display.c |
| 33 |
signals.c |
| 34 |
util.c |
| 35 |
kill.c |
| 36 |
undo.c |
| 37 |
macro.c |
| 38 |
input.c |
| 39 |
callback.c |
| 40 |
terminal.c |
| 41 |
xmalloc.c |
| 42 |
history.c |
| 43 |
histsearch.c |
| 44 |
histexpand.c |
| 45 |
histfile.c |
| 46 |
nls.c |
| 47 |
search.c |
| 48 |
shell.c |
| 49 |
tilde.c |
| 50 |
misc.c |
| 51 |
text.c |
| 52 |
mbutil.c |
| 53 |
compat.c |
| 54 |
savestring.c |
| 55 |
) |
| 56 |
|
| 57 |
# Declare dependency |
| 58 |
# so every executable that links with readline links with curses as well |
| 59 |
TARGET_LINK_LIBRARIES(readline ${CURSES_LIBRARY}) |