Add an interactive test target.

This commit is contained in:
2018-05-23 15:41:17 -07:00
parent 9db667dcdf
commit bbe31be447
2 changed files with 89 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ add_compile_options(-pedantic -Wall)
add_library(abacus STATIC src/lexer.c src/util.c src/table.c src/parser.c src/libabacus.c src/tree.c src/debug.c src/parsetype.c src/reserved.c src/trie.c src/refcount.c src/ref_vec.c src/ref_trie.c src/basetype.c src/value.c src/custom.c src/interpreter.c src/function_list.c)
add_executable(libabacus src/main.c)
add_executable(interactive src/interactive.c)
add_subdirectory(external/liblex)
set_property(TARGET abacus PROPERTY C_STANDARD 90)
@@ -19,3 +20,4 @@ target_include_directories(libabacus PUBLIC include)
target_link_libraries(abacus lex)
target_link_libraries(libabacus abacus)
target_link_libraries(interactive abacus)