# Major component of the version of CVC4.
set(CVC4_MAJOR 1)
# Minor component of the version of CVC4.
-set(CVC4_MINOR 6)
+set(CVC4_MINOR 7)
# Release component of the version of CVC4.
set(CVC4_RELEASE 0)
# Extraversion component of the version of CVC4.
# Define to the full name of this package.
set(PACKAGE_NAME "${PROJECT_NAME}")
+# Shared library versioning. Increment SOVERSION for every new CVC4 release.
+set(CVC4_VERSION "${CVC4_MAJOR}.${CVC4_MINOR}.${CVC4_RELEASE}")
+set(CVC4_SOVERSION 5)
+
#### These defines are only use in autotools make files, will likely be
#### replaced with corresponding CPack stuff
## Define to the full name and version of this package.
set_source_files_properties(${cvc4_gen_src_files} PROPERTIES GENERATED TRUE)
add_library(cvc4 ${cvc4_src_files} ${cvc4_gen_src_files})
+
+set_target_properties(cvc4
+ PROPERTIES
+ VERSION ${CVC4_VERSION}
+ SOVERSION ${CVC4_SOVERSION}
+)
+
target_compile_definitions(cvc4
PRIVATE
-D__BUILDING_CVC4LIB
)
add_library(cvc4parser ${cvc4parser_src_files})
+
+set_target_properties(cvc4parser
+ PROPERTIES
+ VERSION ${CVC4_VERSION}
+ SOVERSION ${CVC4_SOVERSION}
+)
+
target_compile_definitions(cvc4parser PRIVATE -D__BUILDING_CVC4PARSERLIB)
target_link_libraries(cvc4parser parsercvc parsersmt1 parsersmt2 parsertptp cvc4)
target_link_libraries(cvc4parser ${ANTLR_LIBRARIES})