-
Notifications
You must be signed in to change notification settings - Fork 4
/
RobartsVTKConfig.cmake.in
68 lines (56 loc) · 2.16 KB
/
RobartsVTKConfig.cmake.in
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
#-----------------------------------------------------------------------------
#
# RobartsVTKConfig.cmake - CMake configuration file for external projects.
#
# This file is configured by RobartsVTK
#
#-----------------------------------------------------------------------------
# Include RobartsVTK targets for easy linking
INCLUDE(${RobartsVTK_TARGETS_FILE})
# The libraries.
SET(RobartsVTK_LIBRARIES "@RobartsVTK_LIBRARIES@")
# The include directories.
SET(RobartsVTK_INCLUDE_DIRS "@RobartsVTK_INCLUDE_DIRS@")
# RobartsVTK dependencies
SET(VTK_DIR "@VTK_DIR@")
FIND_PACKAGE(VTK @VTK_VERSION@ REQUIRED NO_MODULE)
IF(@RobartsVTK_USE_ITK@)
SET(ITK_DIR "@ITK_DIR@")
FIND_PACKAGE(ITK @ITK_VERSION@ REQUIRED NO_MODULE)
ENDIF()
IF(@RobartsVTK_USE_PLUS@)
SET(PlusLib_DIR "@PlusLib_DIR@")
FIND_PACKAGE(PlusLib REQUIRED NO_MODULE)
ENDIF()
IF(@RobartsVTK_USE_CUDA@)
SET(CUDA_TOOLKIT_ROOT_DIR "@CUDA_TOOLKIT_ROOT_DIR@")
FIND_PACKAGE(CUDA REQUIRED)
ENDIF()
IF(@RobartsVTK_USE_QT@)
SET(Qt5_DIR @Qt5_DIR@)
FIND_PACKAGE(Qt5 COMPONENTS Widgets Xml Core Gui)
ENDIF()
IF(@OpenCV_FOUND@)
SET(OpenCV_DIR "@OpenCV_DIR@")
FIND_PACKAGE(OpenCV @OpenCV_VERSION@ REQUIRED)
ENDIF()
IF(@RobartsVTK_USE_OpenCL@)
FIND_PACKAGE(OpenCL REQUIRED)
ADD_LIBRARY(OpenCL IMPORTED SHARED)
IF("${OpenCL_LIBRARY}" MATCHES "${CMAKE_SHARED_LIBRARY_SUFFIX}")
SET_TARGET_PROPERTIES( OpenCL PROPERTIES IMPORTED_LOCATION "${OpenCL_LIBRARY}" )
ELSEIF("${OpenCL_LIBRARY}" MATCHES "${CMAKE_STATIC_LIBRARY_SUFFIX}")
SET_TARGET_PROPERTIES( OpenCL PROPERTIES IMPORTED_IMPLIB "${OpenCL_LIBRARY}" )
ENDIF()
SET_TARGET_PROPERTIES( OpenCL PROPERTIES INCLUDE_DIRECTORIES "${OpenCL_INCLUDE_DIR}")
ENDIF()
# RobartsVTK options
SET(RobartsVTK_USE_QT @RobartsVTK_USE_QT@)
SET(RobartsVTK_USE_ITK @RobartsVTK_USE_ITK@)
SET(RobartsVTK_USE_PLUS @RobartsVTK_USE_PLUS@)
SET(RobartsVTK_USE_REGISTRATION @RobartsVTK_USE_REGISTRATION@)
SET(RobartsVTK_USE_COMMON @RobartsVTK_USE_COMMON@)
SET(RobartsVTK_USE_CUDA @RobartsVTK_USE_CUDA@)
SET(RobartsVTK_USE_CUDA_VISUALIZATION @RobartsVTK_USE_CUDA_VISUALIZATION@)
SET(RobartsVTK_USE_CUDA_ANALYTICS @RobartsVTK_USE_CUDA_ANALYTICS@)
SET(RobartsVTK_BUILD_APPS @RobartsVTK_BUILD_APPS@)