summaryrefslogtreecommitdiff
path: root/src/parser/tptp
diff options
context:
space:
mode:
authorMathias Preiner <mathias.preiner@gmail.com>2018-08-10 16:19:43 -0700
committerMathias Preiner <mathias.preiner@gmail.com>2018-09-22 16:30:59 -0700
commitd5614f1c7f0380266abf6fd185b13d654657731d (patch)
treef73702f3c2e823a6a785f1465a06d221ef14d07b /src/parser/tptp
parent424923f1317f3182574ebe730ebe0c81b7dbf494 (diff)
cmake: Working build infrastructure.
TODO: cvc4autoconfig.h
Diffstat (limited to 'src/parser/tptp')
-rw-r--r--src/parser/tptp/CMakeLists.txt22
1 files changed, 20 insertions, 2 deletions
diff --git a/src/parser/tptp/CMakeLists.txt b/src/parser/tptp/CMakeLists.txt
index bee38ce87..22593e7b2 100644
--- a/src/parser/tptp/CMakeLists.txt
+++ b/src/parser/tptp/CMakeLists.txt
@@ -1,9 +1,27 @@
-add_custom_target(AntlrTptp
+set(parser_tptp_src_files
+ tptp.cpp
+ tptp.h
+ tptp_input.cpp
+ tptp_input.h
+)
+
+set(parser_tptp_gen_src_files
+ TptpLexer.c
+ TptpParser.c
+)
+
+add_custom_command(
+ OUTPUT ${parser_tptp_gen_src_files} TptpLexer.h TptpParser.h Tptp.tokens
COMMAND
${ANTLR_BINARY}
${CMAKE_CURRENT_SOURCE_DIR}/Tptp.g
-fo ${CMAKE_CURRENT_BINARY_DIR}
+ 2> /dev/null # Ignore Antlr3 warnings
DEPENDS
Tptp.g
)
-#add_dependencies(... AntlrTptp)
+
+add_library(parsertptp SHARED ${parser_tptp_src_files} ${parser_tptp_gen_src_files})
+set_target_properties(parsertptp PROPERTIES COMPILE_DEFINITIONS __BUILDING_CVC4PARSERLIB)
+set_source_files_properties(${parser_tptp_gen_src_files} PROPERTIES LANGUAGE CXX)
+add_dependencies(parsertptp expr)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback