/usr/share/vtk/Build/vtkMy/CMakeOptions.cmake is in vtk-examples 5.8.0-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 | #
# Configure output paths for libraries and executables.
#
SET(LIBRARY_OUTPUT_PATH ${VTKMY_BINARY_DIR}/bin CACHE PATH
"Single output directory for building all libraries.")
SET(EXECUTABLE_OUTPUT_PATH ${VTKMY_BINARY_DIR}/bin CACHE PATH
"Single output directory for building all executables.")
MARK_AS_ADVANCED(LIBRARY_OUTPUT_PATH EXECUTABLE_OUTPUT_PATH)
#
# Try to find VTK and include its settings (otherwise complain)
#
IF(NOT VTK_BINARY_DIR)
FIND_PACKAGE(VTK REQUIRED)
INCLUDE(${VTK_USE_FILE})
ENDIF(NOT VTK_BINARY_DIR)
#
# Build shared libs ?
#
# Defaults to the same VTK setting.
#
# Standard CMake option for building libraries shared or static by default.
OPTION(BUILD_SHARED_LIBS
"Build with shared libraries."
${VTK_BUILD_SHARED_LIBS})
# Copy the CMake option to a setting with VTKMY_ prefix for use in
# our project. This name is used in vtkmyConfigure.h.in.
SET(VTKMY_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS})
# If this is a build tree, provide an option for putting
# this project's executables and libraries in with VTK's.
IF (EXISTS ${VTK_DIR}/bin)
OPTION(USE_VTK_OUTPUT_PATHS
"Use VTK's output directory for this project's executables and libraries."
OFF)
MARK_AS_ADVANCED (USE_VTK_OUTPUT_PATHS)
IF (USE_VTK_OUTPUT_PATHS)
SET (LIBRARY_OUTPUT_PATH ${VTK_DIR}/bin)
SET (EXECUTABLE_OUTPUT_PATH ${VTK_DIR}/bin)
ENDIF (USE_VTK_OUTPUT_PATHS)
ENDIF (EXISTS ${VTK_DIR}/bin)
#
# Wrap Tcl, Java, Python
#
# Rational: even if your VTK was wrapped, it does not mean that you want to
# wrap your own local classes.
# Default value is OFF as the VTK cache might have set them to ON but
# the wrappers might not be present (or yet not found).
#
#
# Tcl
#
IF (VTK_WRAP_TCL)
OPTION(VTKMY_WRAP_TCL
"Wrap classes into the TCL interpreted language."
ON)
IF(VTKMY_WRAP_TCL)
INCLUDE(${VTK_CMAKE_DIR}/vtkWrapTcl.cmake)
ENDIF(VTKMY_WRAP_TCL)
ELSE (VTK_WRAP_TCL)
IF (VTKMY_WRAP_TCL)
MESSAGE("Warning. VTKMY_WRAP_TCL is ON but the VTK version you have "
"chosen has not support for Tcl (VTK_WRAP_TCL is OFF). "
"Please set VTKMY_WRAP_TCL to OFF.")
SET (VTKMY_WRAP_TCL OFF)
ENDIF (VTKMY_WRAP_TCL)
ENDIF (VTK_WRAP_TCL)
#
# Python
#
IF (VTK_WRAP_PYTHON)
OPTION(VTKMY_WRAP_PYTHON
"Wrap classes into the Python interpreted language."
ON)
IF (VTKMY_WRAP_PYTHON)
SET(VTK_WRAP_PYTHON_FIND_LIBS ON)
INCLUDE(${VTK_CMAKE_DIR}/vtkWrapPython.cmake)
IF (WIN32)
IF (NOT BUILD_SHARED_LIBS)
MESSAGE(FATAL_ERROR "Python support requires BUILD_SHARED_LIBS to be ON.")
SET (VTKMY_CAN_BUILD 0)
ENDIF (NOT BUILD_SHARED_LIBS)
ENDIF (WIN32)
ENDIF (VTKMY_WRAP_PYTHON)
ELSE (VTK_WRAP_PYTHON)
IF (VTKMY_WRAP_PYTHON)
MESSAGE("Warning. VTKMY_WRAP_PYTHON is ON but the VTK version you have "
"chosen has not support for Python (VTK_WRAP_PYTHON is OFF). "
"Please set VTKMY_WRAP_PYTHON to OFF.")
SET (VTKMY_WRAP_PYTHON OFF)
ENDIF (VTKMY_WRAP_PYTHON)
ENDIF (VTK_WRAP_PYTHON)
#
# Java
#
IF (VTK_WRAP_JAVA)
OPTION(VTKMY_WRAP_JAVA
"Wrap classes into the Java interpreted language."
ON)
IF (VTKMY_WRAP_JAVA)
SET(VTK_WRAP_JAVA3_INIT_DIR "${VTKMY_SOURCE_DIR}/Wrapping")
INCLUDE(${VTK_CMAKE_DIR}/vtkWrapJava.cmake)
IF (WIN32)
IF (NOT BUILD_SHARED_LIBS)
MESSAGE(FATAL_ERROR "Java support requires BUILD_SHARED_LIBS to be ON.")
SET (VTKMY_CAN_BUILD 0)
ENDIF (NOT BUILD_SHARED_LIBS)
ENDIF (WIN32)
# Tell the java wrappers where to go.
SET(VTK_JAVA_HOME ${VTKMY_BINARY_DIR}/java/vtkmy)
MAKE_DIRECTORY(${VTK_JAVA_HOME})
ENDIF (VTKMY_WRAP_JAVA)
ELSE (VTK_WRAP_JAVA)
IF (VTKMY_WRAP_JAVA)
MESSAGE("Warning. VTKMY_WRAP_JAVA is ON but the VTK version you have "
"chosen has not support for Java (VTK_WRAP_JAVA is OFF). "
"Please set VTKMY_WRAP_JAVA to OFF.")
SET (VTKMY_WRAP_JAVA OFF)
ENDIF (VTKMY_WRAP_JAVA)
ENDIF (VTK_WRAP_JAVA)
# Setup our local hints file in case wrappers need them.
SET(VTK_WRAP_HINTS ${VTKMY_SOURCE_DIR}/Wrapping/hints)
|