|
| 1 | +# |
| 2 | +# Programmed By: Mohammed Isam Mohammed [[email protected]] |
| 3 | +# Copyright 2016, 2017, 2018, 2019 (c) |
| 4 | +# |
| 5 | +# file: CMakeLists.txt |
| 6 | +# This file is part of the Layla Shell project. |
| 7 | +# |
| 8 | +# Layla Shell is free software: you can redistribute it and/or modify |
| 9 | +# it under the terms of the GNU General Public License as published by |
| 10 | +# the Free Software Foundation, either version 3 of the License, or |
| 11 | +# (at your option) any later version. |
| 12 | +# |
| 13 | +# Layla Shell is distributed in the hope that it will be useful, |
| 14 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | +# GNU General Public License for more details. |
| 17 | +# |
| 18 | +# You should have received a copy of the GNU General Public License |
| 19 | +# along with Layla Shell. If not, see <http://www.gnu.org/licenses/>. |
| 20 | +# |
| 21 | + |
| 22 | +cmake_minimum_required(VERSION 2.6) |
| 23 | +project(shell) |
| 24 | + |
| 25 | +# we set the debug mode so that we can easily use gdb and valgrind later. |
| 26 | +# don't forget to turn off in the release version! |
| 27 | +set(CMAKE_BUILD_TYPE Debug) |
| 28 | + |
| 29 | +add_executable(lsh main.c cmd_args.c cmdline.c helpfunc.c initsh.c |
| 30 | + jobs.c prompt.c args.c params.c signames.c tab.c |
| 31 | + debug.c kbdevent2.c #kbdevent.c |
| 32 | + early_environ.h cmd.h signames.h |
| 33 | + debug.h kbdevent.h cpu.h ostype.h vars.c |
| 34 | + vi.c vi.h vi_keys.c comptype.h strbuf.c popen.c functab.c |
| 35 | + scanner/lexical.c scanner/source.c |
| 36 | + scanner/scanner.h scanner/source.h scanner/keywords.h |
| 37 | + parser/node.c parser/parser.c |
| 38 | + parser/node.h |
| 39 | + backend/backend.c backend/backend.h backend/pattern.c |
| 40 | + backend/redirect.c backend/shunt.c |
| 41 | + symtab/symtab_hash.c symtab/symtab_hash.h symtab/symtab.h |
| 42 | + symtab/string_hash.c symtab/string_hash.h |
| 43 | + error/error.c error/error.h |
| 44 | + builtins/builtins.c |
| 45 | + builtins/help.c builtins/ulimit.c builtins/source.c |
| 46 | + builtins/history.c builtins/hash.c builtins/type.c |
| 47 | + builtins/alias.c builtins/bg.c builtins/cd.c |
| 48 | + builtins/command.c builtins/false.c builtins/fc.c |
| 49 | + builtins/fg.c builtins/getopts.c builtins/kill.c |
| 50 | + builtins/newgrp.c builtins/pwd.c builtins/read.c |
| 51 | + builtins/true.c builtins/umask.c builtins/unalias.c |
| 52 | + builtins/wait.c builtins/time.c builtins/mailcheck.c |
| 53 | + builtins/colon.c builtins/dot.c builtins/eval.c |
| 54 | + builtins/exec.c builtins/exit.c builtins/export.c |
| 55 | + builtins/readonly.c builtins/return.c builtins/set.c |
| 56 | + builtins/shift.c builtins/times.c builtins/trap.c |
| 57 | + builtins/unset.c builtins/ver.c builtins/dump.c |
| 58 | + builtins/test.c builtins/disown.c builtins/echo.c |
| 59 | + builtins/let.c builtins/whence.c builtins/local.c |
| 60 | + builtins/setx.c builtins/setx.h builtins/coproc.c |
| 61 | + builtins/caller.c builtins/declare.c builtins/enable.c |
| 62 | + builtins/logout.c builtins/memusage.c builtins/dirstack.c |
| 63 | + builtins/suspend.c builtins/hist_expand.c builtins/bugreport.c |
| 64 | + builtins/nice.c builtins/hup.c builtins/notify.c |
| 65 | + builtins/glob.c builtins/printenv.c builtins/repeat.c |
| 66 | + builtins/setenv.c builtins/stop.c builtins/unlimit.c |
| 67 | + builtins/unsetenv.c |
| 68 | + ) |
| 69 | +target_link_libraries (lsh rt) # librt is needed for timer_create() and timer_settime() |
| 70 | +install(TARGETS lsh RUNTIME DESTINATION bin) |
0 commit comments