/usr/lib/vtk-5.8/CMake/vtkExportKit.cmake is in libvtk5-dev 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 | #-----------------------------------------------------------------------------
MACRO(VTK_EXPORT_KIT2 kit ukit dest_dir sources)
SET(VTK_EXPORT_KIT ${kit})
SET(VTK_EXPORT_UKIT ${ukit})
SET(VTK_EXPORT_KIT_DOLLAR "$")
# Export the list of classes from the install tree.
SET(VTK_EXPORT_HEADER_DIR ${VTK_EXPORT_KIT_DOLLAR}{VTK_INSTALL_PREFIX}${VTK_INSTALL_INCLUDE_DIR})
SET(KIT_CLASS_LIST)
SET(KIT_ABSTRACT_LIST)
SET(KIT_EXCLUDE_LIST)
SET(KIT_SPECIAL_LIST)
SET(KIT_WRAP_HEADER_LIST)
FOREACH(src ${sources})
# Get the class name from the full file name. All class headers
# will be installed to the same directory for this kit in the
# install tree.
GET_SOURCE_FILE_PROPERTY(IS_HEADER ${src} WRAP_HEADER)
IF(IS_HEADER MATCHES "^1$")
SET(KIT_WRAP_HEADER_LIST "${KIT_WRAP_HEADER_LIST}\n \"${src}\"")
ELSE(IS_HEADER MATCHES "^1$")
GET_FILENAME_COMPONENT(CLASS "${src}" NAME_WE)
SET(KIT_CLASS_LIST "${KIT_CLASS_LIST}\n \"${CLASS}\"")
GET_SOURCE_FILE_PROPERTY(IS_ABSTRACT ${src} ABSTRACT)
IF(IS_ABSTRACT MATCHES "^1$")
SET(KIT_ABSTRACT_LIST "${KIT_ABSTRACT_LIST}\n \"${CLASS}\"")
ENDIF(IS_ABSTRACT MATCHES "^1$")
GET_SOURCE_FILE_PROPERTY(IS_EXCLUDE ${src} WRAP_EXCLUDE)
IF(IS_EXCLUDE MATCHES "^1$")
SET(KIT_EXCLUDE_LIST "${KIT_EXCLUDE_LIST}\n \"${CLASS}\"")
ENDIF(IS_EXCLUDE MATCHES "^1$")
GET_SOURCE_FILE_PROPERTY(IS_SPECIAL ${src} WRAP_SPECIAL)
IF(IS_SPECIAL MATCHES "^1$")
SET(KIT_SPECIAL_LIST "${KIT_SPECIAL_LIST}\n \"${CLASS}\"")
ENDIF(IS_SPECIAL MATCHES "^1$")
ENDIF(IS_HEADER MATCHES "^1$")
ENDFOREACH(src)
CONFIGURE_FILE(${VTK_CMAKE_DIR}/vtkKit.cmake.in
${dest_dir}/InstallOnly/vtk${kit}Kit.cmake
@ONLY IMMEDIATE)
IF(NOT VTK_INSTALL_NO_DEVELOPMENT)
INSTALL(FILES
${dest_dir}/InstallOnly/vtk${kit}Kit.cmake
DESTINATION "${VTK_INSTALL_PACKAGE_DIR_CM24}"
COMPONENT Development)
ENDIF(NOT VTK_INSTALL_NO_DEVELOPMENT)
# Export the list of classes from the build tree.
# This file is also used when converting Tcl tests to python tests.
SET(VTK_EXPORT_HEADER_DIR ${CMAKE_CURRENT_SOURCE_DIR})
SET(KIT_CLASS_LIST)
SET(KIT_ABSTRACT_LIST)
SET(KIT_EXCLUDE_LIST)
SET(KIT_SPECIAL_LIST)
SET(KIT_WRAP_HEADER_LIST)
FOREACH(src ${sources})
# Get the class name with the directory if any. Some class
# headers may be in the build tree while others are in the source
# tree.
GET_SOURCE_FILE_PROPERTY(IS_HEADER ${src} WRAP_HEADER)
IF(IS_HEADER MATCHES "^1$")
SET(KIT_WRAP_HEADER_LIST "${KIT_WRAP_HEADER_LIST}\n \"${src}\"")
ELSE(IS_HEADER MATCHES "^1$")
STRING(REGEX REPLACE "\\.cxx$" "" CLASS "${src}")
SET(KIT_CLASS_LIST "${KIT_CLASS_LIST}\n \"${CLASS}\"")
GET_SOURCE_FILE_PROPERTY(IS_ABSTRACT ${src} ABSTRACT)
IF(IS_ABSTRACT MATCHES "^1$")
SET(KIT_ABSTRACT_LIST "${KIT_ABSTRACT_LIST}\n \"${CLASS}\"")
ENDIF(IS_ABSTRACT MATCHES "^1$")
GET_SOURCE_FILE_PROPERTY(IS_EXCLUDE ${src} WRAP_EXCLUDE)
IF(IS_EXCLUDE MATCHES "^1$")
SET(KIT_EXCLUDE_LIST "${KIT_EXCLUDE_LIST}\n \"${CLASS}\"")
ENDIF(IS_EXCLUDE MATCHES "^1$")
GET_SOURCE_FILE_PROPERTY(IS_SPECIAL ${src} WRAP_SPECIAL)
IF(IS_SPECIAL MATCHES "^1$")
SET(KIT_SPECIAL_LIST "${KIT_SPECIAL_LIST}\n \"${CLASS}\"")
ENDIF(IS_SPECIAL MATCHES "^1$")
ENDIF(IS_HEADER MATCHES "^1$")
ENDFOREACH(src)
CONFIGURE_FILE(${VTK_CMAKE_DIR}/vtkKit.cmake.in
${dest_dir}/vtk${kit}Kit.cmake
@ONLY IMMEDIATE)
ENDMACRO(VTK_EXPORT_KIT2)
#-----------------------------------------------------------------------------
MACRO(VTK_EXPORT_KIT kit ukit sources)
VTK_EXPORT_KIT2(${kit} ${ukit} ${VTK_BINARY_DIR}/Utilities "${sources}")
ENDMACRO(VTK_EXPORT_KIT)
|