Skip to content

Commit 588555c

Browse files
authored
Add files via upload
1 parent f51fd86 commit 588555c

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

CMakeLists.txt

+12-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#
22
# Programmed By: Mohammed Isam Mohammed [[email protected]]
3-
# Copyright 2016, 2017, 2018, 2019 (c)
3+
# Copyright 2016, 2017, 2018, 2019, 2020, 2024 (c)
44
#
55
# file: CMakeLists.txt
66
# This file is part of the Layla Shell project.
@@ -27,13 +27,13 @@
2727
# then open Eclipse and select File -> Import... -> General -> Existing Projects into Workspace
2828
# and select the source directory.
2929

30-
cmake_minimum_required(VERSION 2.6)
30+
cmake_minimum_required(VERSION 2.8)
3131
project(shell)
3232

3333
# we set the debug mode so that we can easily use gdb and valgrind later.
3434
# don't forget to turn off in the release version!
3535

36-
set(CMAKE_BUILD_TYPE Debug)
36+
set(CMAKE_BUILD_TYPE Release)
3737

3838
# gcc flags (add -g if you want debugging info)
3939

@@ -45,7 +45,8 @@ add_executable(lsh main.c wordexp.c cmdline.c helpfunc.c initsh.
4545
jobs.c prompt.c args.c params.c sig.c
4646
tab.c debug.c kbdevent2.c shunt.c alphalist.c
4747
braceexp.c vars.c vi.c vi_keys.c strbuf.c
48-
popen.c functab.c strings.c terminal.c
48+
popen.c functab.c strings.c terminal.c utf.c
49+
heredoc.c dstring.c
4950
scanner/lexical.c scanner/source.c
5051
parser/node.c parser/parser.c parser/conditionals.c
5152
parser/loops.c parser/redirect.c
@@ -69,7 +70,7 @@ add_executable(lsh main.c wordexp.c cmdline.c helpfunc.c initsh.
6970
builtins/unset.c builtins/ver.c builtins/dump.c
7071
builtins/test.c builtins/disown.c builtins/echo.c
7172
builtins/let.c builtins/whence.c builtins/local.c
72-
builtins/setx.c builtins/coproc.c
73+
builtins/setx.c builtins/coproc.c builtins/recho.c
7374
builtins/caller.c builtins/declare.c builtins/enable.c
7475
builtins/logout.c builtins/memusage.c builtins/dirstack.c
7576
builtins/suspend.c builtins/hist_expand.c builtins/bugreport.c
@@ -80,7 +81,12 @@ add_executable(lsh main.c wordexp.c cmdline.c helpfunc.c initsh.
8081
)
8182

8283
# librt is needed for timer_create() and timer_settime()
83-
target_link_libraries (lsh rt)
84+
85+
target_link_libraries(lsh rt)
86+
87+
if("x${CMAKE_BUILD_TYPE}x" STREQUAL "xDebugx")
88+
target_compile_definitions(lsh PRIVATE __DEBUG__)
89+
endif()
8490

8591
# compile and install
8692

0 commit comments

Comments
 (0)