forked from Kitware/VTK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
29 lines (24 loc) · 881 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
set(vtkTclTk_THIRD_PARTY 1)
set(vtkTckTk_LIBRARIES)
vtk_module_export_info()
# Set if the tcl/tk libs are static
option(VTK_TCL_TK_STATIC "Build with static Tcl/Tk support. TCL_LIBRARY and TK_LIBRARY must point to the corresponding Tcl/Tk static libraries (example, tcl85sx.lib, tk85sx.lib)." OFF)
mark_as_advanced(VTK_TCL_TK_STATIC)
INCLUDE(vtkDependentOption)
# Use Tk Toolkit (with Tcl or Python)
set(VTK_CAN_USE_TK OFF)
set(VTK_USE_TK_DEFAULT ON)
if(VTK_WRAP_PYTHON OR VTK_WRAP_TCL)
if(NOT VTK_DISABLE_TK_INIT)
set(VTK_CAN_USE_TK ON)
endif()
endif()
vtk_dependent_option(VTK_USE_TK "Build VTK with Tk support"
${VTK_USE_TK_DEFAULT} "VTK_CAN_USE_TK" OFF)
# The cmake code to find the libs is in vtkWrapTcl
set(VTK_WRAP_TCL_FIND_LIBS 1)
include(vtkWrapTcl)
# Subdirs
ADD_SUBDIRECTORY(internals)
ADD_SUBDIRECTORY(lib)
ADD_SUBDIRECTORY(resources)