<div dir="ltr"><div>this is my vtkconfig.cmake file in lib/cmake/vtk6.0.0 installed folder. . . now what should i do ??</div><div>#-----------------------------------------------------------------------------</div><div>#</div>
<div># VTKConfig.cmake - VTK CMake configuration file for external projects.</div><div>#</div><div># This file is configured by VTK and used by the UseVTK.cmake module</div><div># to load VTK's settings for an external project.</div>
<div><br></div><div># Compute the installation prefix from this VTKConfig.cmake file location.</div><div>get_filename_component(VTK_INSTALL_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)</div><div>get_filename_component(VTK_INSTALL_PREFIX "${VTK_INSTALL_PREFIX}" PATH)</div>
<div>get_filename_component(VTK_INSTALL_PREFIX "${VTK_INSTALL_PREFIX}" PATH)</div><div>get_filename_component(VTK_INSTALL_PREFIX "${VTK_INSTALL_PREFIX}" PATH)</div><div>set(VTK_MODULES_DIR "${VTK_INSTALL_PREFIX}/lib/cmake/vtk-6.0/Modules")</div>
<div><br></div><div># The C and C++ flags added by VTK to the cmake-configured flags.</div><div>SET(VTK_REQUIRED_C_FLAGS "")</div><div>SET(VTK_REQUIRED_CXX_FLAGS " -Wno-deprecated")</div><div>SET(VTK_REQUIRED_EXE_LINKER_FLAGS "")</div>
<div>SET(VTK_REQUIRED_SHARED_LINKER_FLAGS "")</div><div>SET(VTK_REQUIRED_MODULE_LINKER_FLAGS "")</div><div><br></div><div># The VTK version number</div><div>SET(VTK_MAJOR_VERSION "6")</div><div>
SET(VTK_MINOR_VERSION "0")</div><div>SET(VTK_BUILD_VERSION "0")</div><div><br></div><div># The location of the UseVTK.cmake file.</div><div>SET(VTK_CMAKE_DIR "${VTK_INSTALL_PREFIX}/lib/cmake/vtk-6.0")</div>
<div>SET(VTK_USE_FILE "${VTK_CMAKE_DIR}/UseVTK.cmake")</div><div><br></div><div>#-----------------------------------------------------------------------------</div><div># Load requested modules.</div><div><br></div>
<div># List of available VTK modules.</div><div>set(VTK_MODULES_ENABLED)</div><div><br></div><div># Determine list of available VTK-modules by scanning the VTK_MODULES_DIR.</div><div>file(GLOB config_files RELATIVE "${VTK_MODULES_DIR}" "${VTK_MODULES_DIR}/*.cmake")</div>
<div>foreach (_file ${config_files})</div><div> if (NOT "${_file}" MATCHES "[^\\-]+-[a-zA-Z]+\\.cmake")</div><div> string(REGEX REPLACE "\\.cmake$" "" _module "${_file}")</div>
<div> list(APPEND VTK_MODULES_ENABLED "${_module}")</div><div> endif()</div><div>endforeach()</div><div><br></div><div># Import VTK targets.</div><div>set(VTK_CONFIG_TARGETS_FILE "${VTK_INSTALL_PREFIX}/lib/cmake/vtk-6.0/VTKTargets.cmake")</div>
<div>if(NOT TARGET vtkCommonCore)</div><div> include("${VTK_CONFIG_TARGETS_FILE}")</div><div>endif()</div><div><br></div><div># Load module interface macros.</div><div>include("${VTK_INSTALL_PREFIX}/lib/cmake/vtk-6.0/vtkModuleAPI.cmake")</div>
<div><br></div><div># Compute set of requested modules.</div><div>if(VTK_FIND_COMPONENTS)</div><div> # Specific modules requested by find_package(VTK).</div><div> set(VTK_MODULES_REQUESTED "${VTK_FIND_COMPONENTS}")</div>
<div>elseif(NOT "${CMAKE_VERSION}" VERSION_GREATER 2.8.4.20110407)</div><div> # CMake 2.8.4 and lower do not forward the components list through</div><div> # their FindVTK.cmake module, so unless the application called</div>
<div> #</div><div> # find_package(VTK NO_MODULE ...)</div><div> #</div><div> # then only the per-component variables VTK_FIND_REQUIRED_<mod> will</div><div> # have leaked through.</div><div> set(VTK_MODULES_REQUESTED "")</div>
<div> get_cmake_property(_vars VARIABLES)</div><div> foreach(v IN LISTS _vars)</div><div> if("x${v}" MATCHES "^xVTK_FIND_REQUIRED_" AND ${v})</div><div> string(REGEX REPLACE "^VTK_FIND_REQUIRED_" "" _mod "${v}")</div>
<div> list(APPEND VTK_MODULES_REQUESTED ${_mod})</div><div> endif()</div><div> endforeach()</div><div>endif()</div><div>if(NOT VTK_MODULES_REQUESTED)</div><div> # No specific modules requested. Use all of them.</div>
<div> set(VTK_MODULES_REQUESTED "${VTK_MODULES_ENABLED}")</div><div>endif()</div><div><br></div><div># Load requested modules and their dependencies into variables:</div><div># VTK_DEFINITIONS = Preprocessor definitions</div>
<div># VTK_LIBRARIES = Libraries to link</div><div># VTK_INCLUDE_DIRS = Header file search path</div><div># VTK_LIBRARY_DIRS = Library search path (for outside dependencies)</div><div>vtk_module_config(VTK ${VTK_MODULES_REQUESTED})</div>
<div><br></div><div>#-----------------------------------------------------------------------------</div><div><br></div><div># VTK global configuration options.</div><div>SET(VTK_BUILD_SHARED_LIBS "ON")</div><div>
SET(VTK_LEGACY_REMOVE "OFF")</div><div>SET(VTK_LEGACY_SILENT "OFF")</div><div>SET(VTK_WRAP_PYTHON "OFF")</div><div>SET(VTK_WRAP_TCL "OFF")</div><div>SET(VTK_WRAP_JAVA "OFF")</div>
<div><br></div><div># Do not add options or information here that is specific to a</div><div># particular module. Instead set <module>_EXPORT_OPTIONS and/or</div><div># <module>_EXPORT_CODE_BUILD and <module>_EXPORT_CODE_INSTALL</div>
<div># at the top of the module CMakeLists.txt file.</div><div><br></div></div>