add_subdirectory(src/base)
add_subdirectory(src/expr)
add_subdirectory(src/options)
+add_subdirectory(src/parser)
add_subdirectory(src/theory)
add_subdirectory(proofs/signatures)
include_directories(src ${CMAKE_CURRENT_BINARY_DIR}/src)
# Find ANTLR
# ANTLR_FOUND - system has ANTLR lib
+# ANTLR_BINARY - the ANTLR binary
# ANTLR_INCLUDE_DIR - the ANTLR include directory
# ANTLR_LIBRARIES - Libraries needed to use ANTLR
+find_program(ANTLR_BINARY
+ NAMES antlr3
+ PATHS "${PROJECT_SOURCE_DIR}/antlr-3.4/bin"
+ )
+
find_path(ANTLR_INCLUDE_DIR
NAMES antlr3.h
PATHS "${PROJECT_SOURCE_DIR}/antlr-3.4/include"
- NO_DEFAULT_PATH
)
find_library(ANTLR_LIBRARIES
NAMES antlr3c libantlr3c
PATHS "${PROJECT_SOURCE_DIR}/antlr-3.4/lib"
- NO_DEFAULT_PATH
)
include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args(ANTLR DEFAULT_MSG ANTLR_INCLUDE_DIR ANTLR_LIBRARIES)
+find_package_handle_standard_args(
+ ANTLR DEFAULT_MSG ANTLR_BINARY ANTLR_INCLUDE_DIR ANTLR_LIBRARIES)
-mark_as_advanced(ANTLR_INCLUDE_DIR ANTLR_LIBRARIES)
+mark_as_advanced(ANTLR_BINARY ANTLR_INCLUDE_DIR ANTLR_LIBRARIES)
+add_custom_target(AntlrCvc
+ COMMAND
+ ${ANTLR_BINARY}
+ ${CMAKE_CURRENT_SOURCE_DIR}/Cvc.g
+ -fo ${CMAKE_CURRENT_BINARY_DIR}
+ DEPENDS
+ Cvc.g
+)
+#add_dependencies(... AntlrCvc)
+add_custom_target(AntlrSmt1
+ COMMAND
+ ${ANTLR_BINARY}
+ ${CMAKE_CURRENT_SOURCE_DIR}/Smt1.g
+ -fo ${CMAKE_CURRENT_BINARY_DIR}
+ DEPENDS
+ Smt1.g
+)
+#add_dependencies(... AntlrSmt1)
+add_custom_target(AntlrSmt2
+ COMMAND
+ ${ANTLR_BINARY}
+ ${CMAKE_CURRENT_SOURCE_DIR}/Smt2.g
+ -fo ${CMAKE_CURRENT_BINARY_DIR}
+ DEPENDS
+ Smt2.g
+)
+#add_dependencies(... AntlrSmt2)
+add_custom_target(AntlrTptp
+ COMMAND
+ ${ANTLR_BINARY}
+ ${CMAKE_CURRENT_SOURCE_DIR}/Tptp.g
+ -fo ${CMAKE_CURRENT_BINARY_DIR}
+ DEPENDS
+ Tptp.g
+)
+#add_dependencies(... AntlrTptp)