Default install paths are:
- libcvc4jni.so in /usr/lib/
- CVC4.jar in /usr/share/java/cvc4
Fixes #2990.
${CMAKE_CURRENT_BINARY_DIR}/vectorVectorExpr.java
)
-add_jar(cvc4jar SOURCES ${gen_java_files} OUTPUT_NAME CVC4)
+set(CMAKE_JNI_TARGET TRUE)
+add_jar(cvc4jar
+ SOURCES ${gen_java_files}
+ VERSION ${CVC4_MAJOR}.${CVC4_MINOR}.${CVC4_RELEASE}
+ OUTPUT_NAME CVC4)
add_dependencies(cvc4jar cvc4jni)
+install_jar(cvc4jar DESTINATION share/java/cvc4)
+install_jni_symlink(cvc4jar DESTINATION share/java/cvc4)
+install(TARGETS cvc4jni DESTINATION lib)