Skip to content
Snippets Groups Projects
Commit 932519bd authored by Ben Boeckel's avatar Ben Boeckel
Browse files

Wrapping/Java: use the new JOGL find module

parent 37d6f0ef
No related branches found
No related tags found
No related merge requests found
......@@ -6,17 +6,20 @@ vtk_module_wrap_java(
LIBRARY_DESTINATION "${CMAKE_INSTALL_LIBDIR}"
JNILIB_DESTINATION "${CMAKE_INSTALL_LIBDIR}/java/vtk-${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}")
# TODO: Make FindJava.cmake use imported targets.
find_package(Java REQUIRED COMPONENTS Development)
include(UseJava)
option(VTK_JAVA_SWT_COMPONENT "Enable the SWT component for Java" OFF)
if (VTK_JAVA_SWT_COMPONENT)
find_package(SWT REQUIRED)
endif ()
# Add the option for build the JOGL component to VTK.
set(JOGL_VERSION "2.3.2")
option(VTK_JAVA_JOGL_COMPONENT "Need JOGL jar files" OFF)
# TODO: Make FindJava.cmake use imported targets.
find_package(Java REQUIRED COMPONENTS Development)
if (VTK_JAVA_JOGL_COMPONENT)
find_package(JOGL REQUIRED)
endif ()
set(java_sources
vtk/CellType
......
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