Skip to content
Snippets Groups Projects
Commit cc6002ea authored by Sebastien Jourdain's avatar Sebastien Jourdain
Browse files

Add runtime libraries on Windows for Java binary package

Extend VTK_JAVA_INSTALL section to properly integrate
runtime libs in the custom generated package.

Change-Id: I857118e1554ca2d1193048058454f1203e3ae622
parent d895c18f
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,14 @@ include_directories(${JAVA_INCLUDE_PATH} ${JAVA_INCLUDE_PATH2})
# Add the option to package VTK for custom Java packaging
option(VTK_JAVA_INSTALL "Use the Java rules to build the native libraries." OFF)
if(VTK_JAVA_INSTALL)
# Make sure we embed the runtime libraries when packaging the Java binaries
if(WIN32)
# install system runtimes.
set(CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION "bin")
include(InstallRequiredSystemLibraries)
endif()
set(VTK_CUSTOM_LIBRARY_SUFFIX "" CACHE STRING "" FORCE)
mark_as_advanced(VTK_CUSTOM_LIBRARY_SUFFIX)
if(APPLE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment