]> git.lizzy.rs Git - nothing.git/blobdiff - CMakeLists.txt
TODO(#360)
[nothing.git] / CMakeLists.txt
index 3f89a4fb14afecdad6eca8d39da04b2285805f6d..3f29c2e2ec40e6522c789bffd1a6526872a9d378 100644 (file)
@@ -47,11 +47,14 @@ set(SOURCE_FILES
   src/script/interpreter.c
   src/script/parser.c
   src/script/tokenizer.c
+  src/script/gc.c
+  src/script/scope.c
   src/sdl/renderer.c
   src/system/error.c
   src/system/lt.c
   src/system/lt/lt_adapters.c
   src/system/lt/lt_slot.c
+  src/game/level/console.c
 )
 
 set(HEADER_FILES
@@ -85,6 +88,8 @@ set(HEADER_FILES
   src/script/builtins.c
   src/script/builtins.h
   src/script/expr.h
+  src/script/gc.h
+  src/script/scope.h
   src/script/interpreter.h
   src/script/parser.h
   src/script/tokenizer.h
@@ -93,9 +98,35 @@ set(HEADER_FILES
   src/system/lt.h
   src/system/lt/lt_adapters.h
   src/system/lt/lt_slot.h
+  src/game/level/console.h
 )
 
 add_executable(nothing ${SOURCE_FILES} ${HEADER_FILES})
+add_executable(repl
+  src/script/builtins.c
+  src/script/builtins.h
+  src/script/expr.c
+  src/script/expr.h
+  src/script/interpreter.c
+  src/script/interpreter.h
+  src/script/parser.c
+  src/script/parser.h
+  src/script/scope.c
+  src/script/scope.h
+  src/script/tokenizer.c
+  src/script/tokenizer.h
+  src/script/repl.c
+  src/system/lt.c
+  src/system/lt.h
+  src/system/lt/lt_adapters.c
+  src/system/lt/lt_adapters.h
+  src/system/lt/lt_slot.c
+  src/system/lt/lt_slot.h
+  src/system/error.c
+  src/system/error.h
+  src/script/gc.h
+  src/script/gc.c
+  )
 add_executable(nothing_test
   src/script/builtins.c
   src/script/builtins.h
@@ -109,6 +140,8 @@ add_executable(nothing_test
   src/script/scope.h
   src/script/tokenizer.c
   src/script/tokenizer.h
+  src/script/gc.h
+  src/script/gc.c
   src/system/error.c
   src/system/error.h
   src/system/lt.c
@@ -123,6 +156,7 @@ add_executable(nothing_test
   )
 target_link_libraries(nothing ${SDL2_LIBRARY} ${SDL2_MIXER_LIBRARY})
 target_link_libraries(nothing_test ${SDL2_LIBRARY} ${SDL2_MIXER_LIBRARY})
+target_link_libraries(repl ${SDL2_LIBRARY} ${SDL2_MIXER_LIBRARY})
 
 if(("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") OR ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "CLANG"))
   set(CMAKE_C_FLAGS