This file is indexed.

/usr/lib/KWWidgets/CMake/FindIncrTCL.cmake is in libkwwidgets1-dev 1.0.0~cvs20100930-8.

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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
# - Find [incr Tcl] includes and libraries.
# This module finds if [incr Tcl] is installed and determines where the
# include files and libraries are. It also determines what the name of
# the library is. This code sets the following variables:
#  INCR_TCL_LIBRARY        = path to [incr Tcl] library
#  INCR_TCL_INCLUDE_PATH   = path to where itcl.h can be found
#  INCR_TK_LIBRARY         = path to [incr Tk] library
#  INCR_TK_INCLUDE_PATH    = path to where itk.h can be found

include(CMakeFindFrameworks)
include(FindTCL)

get_filename_component(TCL_TCLSH_PATH "${TCL_TCLSH}" PATH)
get_filename_component(TCL_TCLSH_PATH_PARENT "${TCL_TCLSH_PATH}" PATH)

get_filename_component(TK_WISH_PATH "${TK_WISH}" PATH)
get_filename_component(TK_WISH_PATH_PARENT "${TK_WISH_PATH}" PATH)

get_filename_component(TCL_INCLUDE_PATH_PARENT "${TCL_INCLUDE_PATH}" PATH)
get_filename_component(TK_INCLUDE_PATH_PARENT "${TK_INCLUDE_PATH}" PATH)

get_filename_component(TCL_LIBRARY_PATH "${TCL_LIBRARY}" PATH)
get_filename_component(TCL_LIBRARY_PATH_PARENT "${TCL_LIBRARY_PATH}" PATH)

get_filename_component(TK_LIBRARY_PATH "${TK_LIBRARY}" PATH)
get_filename_component(TK_LIBRARY_PATH_PARENT "${TK_LIBRARY_PATH}" PATH)

set(INCR_TCLTK_POSSIBLE_LIB_PATHS
  "${TCL_LIBRARY_PATH}"
  "${TK_LIBRARY_PATH}"
  "${TCL_INCLUDE_PATH_PARENT}/lib"
  "${TK_INCLUDE_PATH_PARENT}/lib"
  "${TCL_TCLSH_PATH_PARENT}/lib"
  "${TK_WISH_PATH_PARENT}/lib"
  /usr/lib 
  /usr/local/lib
  )

if(WIN32)
  get_filename_component(
    ActiveTcl_CurrentVersion 
    "[HKEY_LOCAL_MACHINE\\SOFTWARE\\ActiveState\\ActiveTcl;CurrentVersion]" 
    NAME)
  set(INCR_TCLTK_POSSIBLE_LIB_PATHS ${INCR_TCLTK_POSSIBLE_LIB_PATHS}
    "[HKEY_LOCAL_MACHINE\\SOFTWARE\\ActiveState\\ActiveTcl\\${ActiveTcl_CurrentVersion}]/lib"
    "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.6;Root]/lib"
    "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.5;Root]/lib"
    "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.4;Root]/lib"
    "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.3;Root]/lib"
    "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.2;Root]/lib"
    "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.0;Root]/lib"
    "$ENV{ProgramFiles}/Tcl/Lib"
    "C:/Program Files/Tcl/lib" 
    "C:/Tcl/lib" 
    )
endif(WIN32)

foreach(version "3.4" "3.3" "3.2")
  set(INCR_TCL_POSSIBLE_LIB_PATHS)
  set(INCR_TK_POSSIBLE_LIB_PATHS)
  foreach(path ${INCR_TCLTK_POSSIBLE_LIB_PATHS})
    set(INCR_TCL_POSSIBLE_LIB_PATHS ${INCR_TCL_POSSIBLE_LIB_PATHS} 
      "${path}"
      "${path}/itcl${version}"
      )
    set(INCR_TK_POSSIBLE_LIB_PATHS ${INCR_TK_POSSIBLE_LIB_PATHS} 
      "${path}"
      "${path}/itk${version}"
      )
  endforeach(path)
  string(REGEX REPLACE "\\." "" version_collapsed ${version})
  find_library(INCR_TCL_LIBRARY
    NAMES "itcl${version_collapsed}" "itcl${version}"
    PATHS ${INCR_TCL_POSSIBLE_LIB_PATHS}
    )
  find_library(INCR_TK_LIBRARY
    NAMES "itk${version_collapsed}" "itk${version}"
    PATHS ${INCR_TK_POSSIBLE_LIB_PATHS}
    )
endforeach(version)

mark_as_advanced(
  INCR_TCL_LIBRARY
  INCR_TK_LIBRARY
  )

cmake_find_frameworks(Tcl)
cmake_find_frameworks(Tk)

set(TCL_FRAMEWORK_INCLUDES)
if(Tcl_FRAMEWORKS)
  if(NOT TCL_INCLUDE_PATH)
    foreach(dir ${Tcl_FRAMEWORKS})
      set(TCL_FRAMEWORK_INCLUDES ${TCL_FRAMEWORK_INCLUDES} ${dir}/Headers)
    endforeach(dir)
  endif(NOT TCL_INCLUDE_PATH)
endif(Tcl_FRAMEWORKS)

set(TK_FRAMEWORK_INCLUDES)
if(Tk_FRAMEWORKS)
  if(NOT TK_INCLUDE_PATH)
    foreach(dir ${Tk_FRAMEWORKS})
      set(TK_FRAMEWORK_INCLUDES ${TK_FRAMEWORK_INCLUDES}
        ${dir}/Headers ${dir}/PrivateHeaders)
    endforeach(dir)
  endif(NOT TK_INCLUDE_PATH)
endif(Tk_FRAMEWORKS)

get_filename_component(INCR_TCL_LIBRARY_PATH "${INCR_TCL_LIBRARY}" PATH)
get_filename_component(INCR_TCL_LIBRARY_PATH_PARENT "${INCR_TCL_LIBRARY_PATH}" PATH)

get_filename_component(INCR_TK_LIBRARY_PATH "${INCR_TK_LIBRARY}" PATH)
get_filename_component(INCR_TK_LIBRARY_PATH_PARENT "${INCR_TK_LIBRARY_PATH}" PATH)

set(INCR_TCLTK_POSSIBLE_INCLUDE_PATHS
  "${INCR_TCL_LIBRARY_PATH_PARENT}/include"
  "${INCR_TK_LIBRARY_PATH_PARENT}/include"
  "${TCL_INCLUDE_PATH}"
  "${TK_INCLUDE_PATH}"
  "${TCL_LIBRARY_PATH_PARENT}/include"
  "${TK_LIBRARY_PATH_PARENT}/include"
  "${TCL_TCLSH_PATH_PARENT}/include"
  "${TK_WISH_PATH_PARENT}/include"
  /usr/include
  /usr/local/include
  /usr/include/tcl8.5
  /usr/include/tcl8.4
  /usr/include/tcl8.3
  /usr/include/tcl8.2
  /usr/include/tcl8.0
  )

if(WIN32)
  set(INCR_TCLTK_POSSIBLE_INCLUDE_PATHS ${INCR_TCLTK_POSSIBLE_INCLUDE_PATHS}
    "[HKEY_LOCAL_MACHINE\\SOFTWARE\\ActiveState\\ActiveTcl\\${ActiveTcl_CurrentVersion}]/include"
    "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.6;Root]/include"
    "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.5;Root]/include"
    "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.4;Root]/include"
    "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.3;Root]/include"
    "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.2;Root]/include"
    "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.0;Root]/include"
    "$ENV{ProgramFiles}/Tcl/include"
    "C:/Program Files/Tcl/include"
    "C:/Tcl/include"
    )
endif(WIN32)

find_path(INCR_TCL_INCLUDE_PATH 
  NAMES itcl.h
  PATHS ${TCL_FRAMEWORK_INCLUDES} ${INCR_TCLTK_POSSIBLE_INCLUDE_PATHS}
  )

find_path(INCR_TK_INCLUDE_PATH 
  NAMES itk.h
  PATHS ${TK_FRAMEWORK_INCLUDES} ${INCR_TCLTK_POSSIBLE_INCLUDE_PATHS}
  )

mark_as_advanced(
  INCR_TCL_INCLUDE_PATH
  INCR_TK_INCLUDE_PATH
  )

if(INCR_TCL_INCLUDE_PATH AND INCR_TK_INCLUDE_PATH AND
    INCR_TCL_LIBRARY AND INCR_TK_LIBRARY)
  set(INCR_TCL_FOUND 1)
else(INCR_TCL_INCLUDE_PATH AND INCR_TK_INCLUDE_PATH AND
    INCR_TCL_LIBRARY AND INCR_TK_LIBRARY)
  set(INCR_TCL_FOUND 0)
endif(INCR_TCL_INCLUDE_PATH AND INCR_TK_INCLUDE_PATH AND
  INCR_TCL_LIBRARY AND INCR_TK_LIBRARY)

if(NOT INCR_TCL_FOUND)
  set(INCR_TCL_MESSAGE
    "[incr Tcl] was not found. Make sure INCR_TCL_LIBRARY, INCR_TK_LIBRARY, INCR_TCL_INCLUDE_PATH and INCR_TK_INCLUDE_PATH are set.")
  if(IncrTCL_FIND_QUIETLY)
  else(IncrTCL_FIND_QUIETLY)
    if(IncrTCL_FIND_REQUIRED)
      message(FATAL_ERROR "${INCR_TCL_MESSAGE}")
    else(IncrTCL_FIND_REQUIRED)
      message("${INCR_TCL_MESSAGE}")
    endif(IncrTCL_FIND_REQUIRED)
  endif(IncrTCL_FIND_QUIETLY)
endif(NOT INCR_TCL_FOUND)