/usr/lib/VTKEdge/UseVTKEdge.cmake is in libvtkedge-dev 0.2.0~20110819-1build2.
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 | ##=============================================================================
## This file is part of VTKEdge. See vtkedge.org for more information.
##
## Copyright (c) 2010 Kitware, Inc.
##
## VTKEdge may be used under the terms of the BSD License
## Please see the file Copyright.txt in the root directory of
## VTKEdge for further information.
##
## Alternatively, you may see:
##
## http://www.vtkedge.org/vtkedge/project/license.html
##
##
## For custom extensions, consulting services, or training, please
## this or any other Kitware supported open source project, please
## contact Kitware at sales@kitware.com.
##
##
##=============================================================================
#
# This module is provided as VTKEdge_USE_FILE by VTKEdgeConfig.cmake.
# It can be INCLUDEd in a project to load the needed compiler and linker
# settings to use VTKEdge:
# find_package(VTKEdge REQUIRED)
# include(${VTKEdge_USE_FILE})
#
if(NOT VTKEdge_USE_FILE_INCLUDED)
set(VTKEdge_USE_FILE_INCLUDED 1)
# Load the compiler settings used for VTKEdge.
if(VTKEdge_BUILD_SETTINGS_FILE)
include(${CMAKE_ROOT}/Modules/CMakeImportBuildSettings.cmake)
cmake_import_build_settings(${VTKEdge_BUILD_SETTINGS_FILE})
endif(VTKEdge_BUILD_SETTINGS_FILE)
# Add compiler flags needed to use VTKEdge.
set(CMAKE_C_FLAGS
"${CMAKE_C_FLAGS} ${VTKEdge_REQUIRED_C_FLAGS}")
set(CMAKE_CXX_FLAGS
"${CMAKE_CXX_FLAGS} ${VTKEdge_REQUIRED_CXX_FLAGS}")
set(CMAKE_EXE_LINKER_FLAGS
"${CMAKE_EXE_LINKER_FLAGS} ${VTKEdge_REQUIRED_EXE_LINKER_FLAGS}")
set(CMAKE_SHARED_LINKER_FLAGS
"${CMAKE_SHARED_LINKER_FLAGS} ${VTKEdge_REQUIRED_SHARED_LINKER_FLAGS}")
set(CMAKE_MODULE_LINKER_FLAGS
"${CMAKE_MODULE_LINKER_FLAGS} ${VTKEdge_REQUIRED_MODULE_LINKER_FLAGS}")
# Add include directories needed to use VTKEdge.
include_directories(${VTKEdge_INCLUDE_DIRS})
# Add link directories needed to use VTKEdge.
link_directories(${VTKEdge_LIBRARY_DIRS})
# Add cmake module path.
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${VTKEdge_CMAKE_DIR}")
# Use VTK.
if(NOT VTKEdge_NO_USE_VTK)
set(VTK_DIR ${VTKEdge_VTK_DIR})
find_package(VTK)
if(VTK_FOUND)
include(${VTK_USE_FILE})
else(VTK_FOUND)
message("VTK not found in VTKEdge_VTK_DIR=\"${VTKEdge_VTK_DIR}\".")
endif(VTK_FOUND)
endif(NOT VTKEdge_NO_USE_VTK)
endif(NOT VTKEdge_USE_FILE_INCLUDED)
|