mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
Configuration - Update VTK configuration and enable optional components (#395)
This commit is contained in:
parent
df546f5aca
commit
84334d8019
@ -82,6 +82,25 @@ else()
|
|||||||
set (CSF_Draco)
|
set (CSF_Draco)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# VTK
|
||||||
|
if (USE_VTK)
|
||||||
|
# the variable must to be empty, but keep there the list of libs
|
||||||
|
# that is used in the VTK component.
|
||||||
|
set (CSF_VTK
|
||||||
|
# vtkCommonCore
|
||||||
|
# vtkRenderingCore
|
||||||
|
# vtkRenderingFreeType
|
||||||
|
# vtkFiltersGeneral
|
||||||
|
# vtkIOImage
|
||||||
|
# vtkImagingCore
|
||||||
|
# vtkInteractionStyle
|
||||||
|
# vtkRenderingOpenGL
|
||||||
|
# vtkRenderingFreeTypeOpenGL
|
||||||
|
)
|
||||||
|
else()
|
||||||
|
set (CSF_VTK)
|
||||||
|
endif()
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
set (CSF_advapi32 "advapi32.lib")
|
set (CSF_advapi32 "advapi32.lib")
|
||||||
set (CSF_gdi32 "gdi32.lib")
|
set (CSF_gdi32 "gdi32.lib")
|
||||||
|
@ -2,8 +2,14 @@
|
|||||||
|
|
||||||
# vcpkg processing
|
# vcpkg processing
|
||||||
if (BUILD_USE_VCPKG)
|
if (BUILD_USE_VCPKG)
|
||||||
find_package(VTK REQUIRED)
|
find_package(VTK REQUIRED
|
||||||
set(CSF_VTK VTK::CommonCore)
|
COMPONENTS
|
||||||
|
CommonCore
|
||||||
|
RenderingUI
|
||||||
|
RenderingOpenGL2
|
||||||
|
OPTIONAL_COMPONENTS
|
||||||
|
mpi
|
||||||
|
)
|
||||||
set(IS_VTK_9XX 1)
|
set(IS_VTK_9XX 1)
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
set (USED_3RDPARTY_VTK_DIR "${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/bin")
|
set (USED_3RDPARTY_VTK_DIR "${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/bin")
|
||||||
@ -74,7 +80,14 @@ if (3RDPARTY_VTK_DIR AND EXISTS "${3RDPARTY_VTK_DIR}")
|
|||||||
set (ENV{VTK_DIR} "${3RDPARTY_VTK_DIR}")
|
set (ENV{VTK_DIR} "${3RDPARTY_VTK_DIR}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(VTK QUIET)
|
find_package(VTK QUIET
|
||||||
|
COMPONENTS
|
||||||
|
CommonCore
|
||||||
|
RenderingUI
|
||||||
|
RenderingOpenGL2
|
||||||
|
OPTIONAL_COMPONENTS
|
||||||
|
mpi
|
||||||
|
)
|
||||||
|
|
||||||
if (3RDPARTY_VTK_DIR AND EXISTS "${3RDPARTY_VTK_DIR}")
|
if (3RDPARTY_VTK_DIR AND EXISTS "${3RDPARTY_VTK_DIR}")
|
||||||
set (ENV{VTK_DIR} ${CACHED_VTK_DIR})
|
set (ENV{VTK_DIR} ${CACHED_VTK_DIR})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user