-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists.txt
452 lines (385 loc) · 18.3 KB
/
CMakeLists.txt
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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
PROJECT(RobartsVTK)
#-----------------------------------------------------------------------------
# CMake version requirements
#-----------------------------------------------------------------------------
CMAKE_MINIMUM_REQUIRED(VERSION 3.2)
cmake_policy(SET CMP0003 NEW)
SET(RobartsVTK_MAJOR_VERSION 2)
SET(RobartsVTK_MINOR_VERSION 0)
SET(RobartsVTK_PATCH_VERSION 0)
SET(RobartsVTK_VERSION ${RobartsVTK_MAJOR_VERSION}.${RobartsVTK_MINOR_VERSION}.${RobartsVTK_PATCH_VERSION})
# Use solution folders.
IF(MSVC OR ${CMAKE_GENERATOR} MATCHES "Xcode")
SET_PROPERTY(GLOBAL PROPERTY USE_FOLDERS ON)
SET_PROPERTY(GLOBAL PROPERTY PREDEFINED_TARGETS_FOLDER "CMakeTargets")
ENDIF()
INCLUDE(${CMAKE_SOURCE_DIR}/CMake/RobartsCommon.cmake)
LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMake)
#-----------------------------------------------------------------------------
# Options
#-----------------------------------------------------------------------------
OPTION(RobartsVTK_USE_QT "Build with QT enabled" OFF)
OPTION(RobartsVTK_USE_ITK "Use ITK in RobartsITK" OFF)
OPTION(RobartsVTK_USE_PLUS "Use the PLUSToolkit for data collection." OFF)
OPTION(RobartsVTK_USE_REGISTRATION "Build the vtkRobartsRegistration module" OFF)
OPTION(RobartsVTK_USE_COMMON "Build the vtkRobartsCommon module" ON)
OPTION(RobartsVTK_USE_CUDA "Build the CUDA modules" OFF)
IF(RobartsVTK_USE_CUDA)
OPTION(RobartsVTK_USE_CUDA_VISUALIZATION "Build the CUDA visualization modules" ON)
ENDIF()
IF(RobartsVTK_USE_CUDA AND RobartsVTK_USE_COMMON)
OPTION(RobartsVTK_USE_CUDA_ANALYTICS "Build the CUDA image analytics modules" ON)
ENDIF()
OPTION(RobartsVTK_USE_OpenCL "Build the OpenCL modules" OFF)
OPTION(RobartsVTK_USE_VISUALIZATION "Build the visualization modules" ON)
OPTION(RobartsVTK_BUILD_APPS "Build RobartsVTK applications." OFF)
OPTION(BUILD_SHARED_LIBS "Build shared libraries." ON)
OPTION(BUILD_DOCUMENTATION "Build Documentation" OFF)
#-----------------------------------------------------------------------------
# Compiler options
#-----------------------------------------------------------------------------
IF(MSVC)
OPTION(CMAKE_CXX_MP_FLAG "Build with /MP flag enabled" OFF)
ENDIF()
#-----------------------------------------------------------------------------
# Testing
#-----------------------------------------------------------------------------
OPTION(BUILD_TESTING "Build test programs" ON)
INCLUDE(CTest)
#-----------------------------------------------------------------------------
# RobartsVTK executable output path
#-----------------------------------------------------------------------------
# Set up our directory structure for output libraries and binaries
IF(NOT CMAKE_RUNTIME_OUTPUT_DIRECTORY)
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY "bin")
ENDIF()
IF(NOT CMAKE_LIBRARY_OUTPUT_DIRECTORY)
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY "lib")
ENDIF()
IF(NOT CMAKE_ARCHIVE_OUTPUT_DIRECTORY)
SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "lib")
ENDIF()
if(NOT RobartsVTK_INCLUDE_INSTALL)
set(RobartsVTK_INCLUDE_INSTALL "include")
endif()
MARK_AS_ADVANCED(CMAKE_RUNTIME_OUTPUT_DIRECTORY
CMAKE_LIBRARY_OUTPUT_DIRECTORY
CMAKE_ARCHIVE_OUTPUT_DIRECTORY
RobartsVTK_INCLUDE_INSTALL
)
#-----------------------------------------------------------------------------
# Add configure file to included directories
#-----------------------------------------------------------------------------
INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR})
#-----------------------------------------------------------------------------
# Find OpenMP
#-----------------------------------------------------------------------------
FIND_PACKAGE(OpenMP QUIET)
#-----------------------------------------------------------------------------
# Look for a VTK build directory
#-----------------------------------------------------------------------------
FIND_PACKAGE(VTK REQUIRED NO_MODULE)
IF( ${VTK_VERSION} VERSION_LESS "7" )
MESSAGE( SEND_ERROR "VTK must be version 7 or higher.")
ENDIF()
MESSAGE(STATUS "Using VTK available at: ${VTK_DIR}")
#-----------------------------------------------------------------------------
# Confirm that VTK was built with Qt IF requested
#-----------------------------------------------------------------------------
OPTION(RobartsVTK_USE_QT "Build with QT enabled" OFF)
IF(RobartsVTK_USE_QT)
IF(NOT TARGET vtkGUISupportQt)
MESSAGE( SEND_ERROR "You have to build VTK with VTK_USE_QT flag ON IF you need to use RobartsVTK_USE_QT.")
ENDIF()
ENDIF()
#-----------------------------------------------------------------------------
# Qt
#-----------------------------------------------------------------------------
IF(RobartsVTK_USE_QT)
IF( (RobartsVTK_USE_VISUALIZATION OR RobartsVTK_USE_CUDA_ANALYTICS) AND RobartsVTK_BUILD_APPS)
SET(RobartsVTK_VIS_QT_COMPONENTS Test Concurrent Xml)
ENDIF()
FIND_PACKAGE(Qt5 REQUIRED COMPONENTS Widgets ${RobartsVTK_VIS_QT_COMPONENTS})
SET(QT_VERSION_MAJOR ${Qt5Widgets_VERSION_MAJOR})
SET(CMAKE_AUTOMOC ON)
SET(CMAKE_AUTOUIC ON)
SET(CMAKE_AUTORCC ON)
GET_FILENAME_COMPONENT(QT_CMAKE_DIR ${Qt5_DIR} DIRECTORY)
GET_FILENAME_COMPONENT(QT_LIB_DIR ${QT_CMAKE_DIR} DIRECTORY)
GET_FILENAME_COMPONENT(QT_ROOT_DIR ${QT_LIB_DIR} DIRECTORY)
SET(QT_BINARY_DIR ${QT_ROOT_DIR}/bin)
# --------------------------------------------------------------------------
# Copy Qt binaries to CMAKE_RUNTIME_OUTPUT_DIRECTORY
IF( ${CMAKE_GENERATOR} MATCHES "Visual Studio" )
# Determine shared library extension without the dot (dll instead of .dll)
STRING(SUBSTRING ${CMAKE_SHARED_LIBRARY_SUFFIX} 1 -1 CMAKE_SHARED_LIBRARY_SUFFIX_NO_SEPARATOR)
# Get all Qt shared library names
SET(RELEASE_REGEX_PATTERN .t5.*[^d][.]${CMAKE_SHARED_LIBRARY_SUFFIX_NO_SEPARATOR})
SET(DEBUG_REGEX_PATTERN .t5.*d[.]${CMAKE_SHARED_LIBRARY_SUFFIX_NO_SEPARATOR})
# Copy shared libraries to bin directory to allow running Plus applications in the build tree
FILE(COPY "${QT_BINARY_DIR}/"
DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Release
FILES_MATCHING REGEX ${RELEASE_REGEX_PATTERN}
)
FILE(COPY "${QT_BINARY_DIR}/"
DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Debug
FILES_MATCHING REGEX ${DEBUG_REGEX_PATTERN}
)
ENDIF()
ENDIF()
#-----------------------------------------------------------------------------
# Look for an ITK build directory (optional)
#-----------------------------------------------------------------------------
OPTION(RobartsVTK_USE_ITK "Use ITK in RobartsITK" OFF)
IF(RobartsVTK_USE_ITK)
# ITK has been built already
FIND_PACKAGE(ITK REQUIRED NO_MODULE)
IF(ITK_FOUND)
MESSAGE(STATUS "Using ITK available at: ${ITK_DIR}")
SET (RobartsVTK_ITK_DIR "${ITK_DIR}" CACHE INTERNAL "Path to store itk binaries")
ENDIF()
ENDIF()
#-----------------------------------------------------------------------------
# Choose static or shared libraries.
#-----------------------------------------------------------------------------
OPTION(BUILD_SHARED_LIBS "Build shared libraries." ${BUILD_SHARED_LIBS})
SET (RobartsVTK_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS})
IF(BUILD_SHARED_LIBS)
SET (BUILD_SHARED_LIBS_CONFIG 1)
ELSE (BUILD_SHARED_LIBS)
SET (BUILD_SHARED_LIBS_CONFIG 0)
ENDIF(BUILD_SHARED_LIBS)
#-----------------------------------------------------------------------------
# Build documentation
#-----------------------------------------------------------------------------
OPTION(BUILD_DOCUMENTATION "Build Documentation" OFF)
IF(BUILD_DOCUMENTATION)
ADD_SUBDIRECTORY(Documentation/Doxygen)
ENDIF()
#-----------------------------------------------------------------------------
# Output directories.
#-----------------------------------------------------------------------------
IF(NOT CMAKE_LIBRARY_OUTPUT_DIRECTORY)
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin CACHE INTERNAL "Single output directory for building all libraries.")
ENDIF()
IF(NOT CMAKE_RUNTIME_OUTPUT_DIRECTORY)
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin CACHE INTERNAL "Single output directory for building all executables.")
ENDIF()
IF(NOT CMAKE_ARCHIVE_OUTPUT_DIRECTORY)
SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/lib CACHE INTERNAL "Single output directory for building all archives.")
ENDIF()
SET(RobartsVTK_Export_Template ${CMAKE_CURRENT_SOURCE_DIR}/RobartsVTKExport.h.in)
#-----------------------------------------------------------------------------
# PLUS configuration (optional)
#-----------------------------------------------------------------------------
IF(RobartsVTK_USE_PLUS)
# PlusLib has been built already
FIND_PACKAGE(PlusLib REQUIRED NO_MODULE)
IF(PlusLib_FOUND)
MESSAGE(STATUS "Using PlusLib available at: ${PlusLib_DIR}")
ENDIF()
ENDIF()
#-----------------------------------------------------------------------------
# Start listing the RobartsVTK modules
#-----------------------------------------------------------------------------
SET(RobartsVTK_LIBRARIES)
SET(RobartsVTK_INCLUDE_DIRS ${CMAKE_CURRENT_BINARY_DIR} CACHE INTERNAL "")
#-----------------------------------------------------------------------------
# vtkRobartsCommon - contains common utilities
#-----------------------------------------------------------------------------
OPTION(RobartsVTK_USE_COMMON "Build the vtkRobartsCommon module" ON)
IF(RobartsVTK_USE_COMMON)
ADD_SUBDIRECTORY (Common/vtkRobartsCommon)
LIST(APPEND RobartsVTK_LIBRARIES vtkRobartsCommon)
ENDIF()
#-----------------------------------------------------------------------------
# vtkRobartsRegistration
#-----------------------------------------------------------------------------
OPTION(RobartsVTK_USE_REGISTRATION "Build the vtkRobartsRegistration module" OFF)
IF(RobartsVTK_USE_REGISTRATION)
ADD_SUBDIRECTORY(ImageProcessing/vtkRobartsRegistration)
LIST(APPEND RobartsVTK_LIBRARIES vtkRobartsRegistration)
ENDIF()
#-----------------------------------------------------------------------------
# CUDA Dependencies
#-----------------------------------------------------------------------------
OPTION(RobartsVTK_USE_CUDA "Build the CUDA modules" OFF)
IF(RobartsVTK_USE_CUDA)
# Look for CUDA facilities
FIND_PACKAGE(CUDA REQUIRED)
# Allow the user to define the CUDA build architectures
IF(${CUDA_VERSION} VERSION_LESS "7.0.0")
SET(_generations "Fermi" "Kepler" "Maxwell")
ELSE()
SET(_generations "Fermi" "Kepler" "Maxwell" "Pascal" "Volta")
ENDIF()
SET(CUDA_GENERATION "" CACHE STRING "Build CUDA device code only for specific GPU architecture. Leave empty to build for all architectures.")
SET_PROPERTY( CACHE CUDA_GENERATION PROPERTY STRINGS "" ${_generations} )
# Look for OpenGL
FIND_PACKAGE(OpenGL REQUIRED)
# Add Robart's CUDA libraries
ADD_SUBDIRECTORY(Common/vtkCudaCommon)
LIST(APPEND RobartsVTK_LIBRARIES vtkCudaCommon)
ADD_SUBDIRECTORY(Common/vtkCudaCommonStatic)
LIST(APPEND RobartsVTK_LIBRARIES vtkCudaCommonStatic)
ENDIF()
#-----------------------------------------------------------------------------
# Add the CUDA Visualization Libraries
#-----------------------------------------------------------------------------
IF(RobartsVTK_USE_CUDA)
OPTION(RobartsVTK_USE_CUDA_VISUALIZATION "Build the CUDA visualization modules" ON)
IF(RobartsVTK_USE_CUDA_VISUALIZATION)
FIND_PACKAGE(OpenGL REQUIRED)
ADD_SUBDIRECTORY(Visualization/vtkCudaVisualization)
LIST(APPEND RobartsVTK_LIBRARIES vtkCudaVisualization)
ENDIF()
ENDIF()
#-----------------------------------------------------------------------------
# Add the Robarts Visualization Libraries
#-----------------------------------------------------------------------------
OPTION(RobartsVTK_USE_VISUALIZATION "Build the Robarts Visualization modules" OFF)
IF(RobartsVTK_USE_VISUALIZATION)
FIND_PACKAGE(OpenGL REQUIRED)
ADD_SUBDIRECTORY(Visualization/vtkRobartsVisualization)
LIST(APPEND RobartsVTK_LIBRARIES vtkRobartsVisualization)
ENDIF()
#-----------------------------------------------------------------------------
# Add the CUDA Analytics Libraries
#-----------------------------------------------------------------------------
IF(RobartsVTK_USE_CUDA AND RobartsVTK_USE_COMMON)
OPTION(RobartsVTK_USE_CUDA_ANALYTICS "Build the CUDA image analytics modules" ON)
IF(RobartsVTK_USE_CUDA_ANALYTICS)
ADD_SUBDIRECTORY(ImageProcessing/vtkCudaImageAnalytics)
LIST(APPEND RobartsVTK_LIBRARIES vtkCudaImageAnalytics)
ENDIF()
ENDIF()
#-----------------------------------------------------------------------------
# OpenCL Dependencies
#-----------------------------------------------------------------------------
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()
OPTION(RobartsVTK_USE_CL_VOLUMERECONSTRUCTION "Build the OpenCL Volume Reconstruction modules" ON)
IF(RobartsVTK_USE_CL_VOLUMERECONSTRUCTION)
ADD_SUBDIRECTORY(ImageProcessing/vtkCLVolumeReconstruction)
LIST(APPEND RobartsVTK_LIBRARIES vtkCLVolumeReconstruction)
ENDIF()
ENDIF()
#-----------------------------------------------------------------------------
# Applications
#-----------------------------------------------------------------------------
OPTION(RobartsVTK_BUILD_APPS "Build RobartsVTK applications." OFF)
IF(RobartsVTK_BUILD_APPS)
IF(RobartsVTK_USE_CUDA)
ADD_SUBDIRECTORY(Applications/Cuda2DTFVolumeRendering)
SET_TARGET_PROPERTIES(Cuda2DTFVolumeRendering PROPERTIES FOLDER Applications)
IF(RobartsVTK_USE_QT AND RobartsVTK_USE_CUDA_VISUALIZATION)
ADD_SUBDIRECTORY(Applications/FluoroPredViz)
SET_TARGET_PROPERTIES(FluoroPredViz PROPERTIES FOLDER Applications)
ADD_SUBDIRECTORY(Applications/DRRExample)
SET_TARGET_PROPERTIES(DRRExample PROPERTIES FOLDER Applications)
ADD_SUBDIRECTORY(Applications/TransferFunctionGUI)
SET_TARGET_PROPERTIES(TFUIDual PROPERTIES FOLDER Applications)
SET_TARGET_PROPERTIES(TFUIGradient PROPERTIES FOLDER Applications)
SET_TARGET_PROPERTIES(TFUIKohonen PROPERTIES FOLDER Applications)
ENDIF()
IF(RobartsVTK_USE_QT AND RobartsVTK_USE_CUDA_ANALYTICS)
ADD_SUBDIRECTORY(Applications/SEGUE)
SET_TARGET_PROPERTIES(SEGUE PROPERTIES FOLDER Applications)
ENDIF()
IF(RobartsVTK_USE_VISUALIZATION)
IF(RobartsVTK_USE_CUDA_VISUALIZATION)
ADD_SUBDIRECTORY(Applications/StreamingUSVis)
SET_TARGET_PROPERTIES(StreamingUSVis PROPERTIES FOLDER Applications)
ADD_SUBDIRECTORY(Applications/Cuda1DTFVolumeRendering)
SET_TARGET_PROPERTIES(Cuda1DTFVolumeRendering PROPERTIES FOLDER Applications)
ADD_SUBDIRECTORY(Applications/CLReconstruction)
SET_TARGET_PROPERTIES(CLReconstruction PROPERTIES FOLDER Applications)
ADD_SUBDIRECTORY(Applications/CLReconstructionWithVisualization)
SET_TARGET_PROPERTIES(CLReconstructionWithVisualization PROPERTIES FOLDER Applications)
ENDIF()
ADD_SUBDIRECTORY(Applications/KeyholeRendering)
ADD_SUBDIRECTORY(Applications/KeyholeRenderingMultipleViewPorts2)
ADD_SUBDIRECTORY(Applications/KeyholeRenderingWithVideo)
ADD_SUBDIRECTORY(Applications/KeyholeRenderingWithStereoVideo)
ADD_SUBDIRECTORY(Applications/KeyholeRenderingMultipleViewPorts)
SET_TARGET_PROPERTIES(KeyholeRenderingWithStereoVideo
KeyholeRenderingWithVideo
KeyholeRenderingMultipleViewPorts2
KeyholeRendering
KeyholeRenderingMultipleViewPorts
PROPERTIES FOLDER Applications)
ENDIF()
ENDIF()
IF(RobartsVTK_USE_COMMON)
ADD_SUBDIRECTORY(Applications/MaxFlow)
SET_TARGET_PROPERTIES(MaxFlow GHMFSegment PROPERTIES FOLDER Applications)
IF(RobartsVTK_USE_CUDA AND RobartsVTK_USE_CUDA_ANALYTICS)
ADD_SUBDIRECTORY(Applications/CudaMaxFlow)
SET_TARGET_PROPERTIES(CudaMaxFlow CUDAGHMFSegment KSOMTrain KSOMApply PROPERTIES FOLDER Applications)
ENDIF()
ENDIF()
IF(RobartsVTK_USE_PLUS AND RobartsVTK_USE_QT AND RobartsVTK_BUILD_APPS)
MESSAGE(STATUS "Using PlusApp available at: ${PlusApp_DIR}")
ADD_SUBDIRECTORY(Applications/CameraCalibration)
ADD_SUBDIRECTORY(Applications/PLUSOpenCVExample)
IF(TARGET CameraCalibration)
SET_TARGET_PROPERTIES(CameraCalibration PROPERTIES FOLDER Applications)
ENDIF()
IF(TARGET PLUSOpenCVExample)
SET_TARGET_PROPERTIES(PLUSOpenCVExample PROPERTIES FOLDER Applications)
ENDIF()
ENDIF()
IF(OpenCV_FOUND)
MESSAGE(STATUS "Using OpenCV available at: ${OpenCV_DIR}")
ENDIF()
ENDIF()
SET(RobartsVTK_INCLUDE_DIRS ${CMAKE_BINARY_DIR})
LIST(REMOVE_DUPLICATES RobartsVTK_LIBRARIES)
#-----------------------------------------------------------------------------
# Populate export variables
#-----------------------------------------------------------------------------
FOREACH(lib ${RobartsVTK_LIBRARIES})
GET_TARGET_PROPERTY(lib_DIRS ${lib} INTERFACE_INCLUDE_DIRECTORIES)
LIST(APPEND RobartsVTK_INCLUDE_DIRS ${lib_DIRS})
ENDFOREACH()
LIST(REMOVE_DUPLICATES RobartsVTK_INCLUDE_DIRS)
#-----------------------------------------------------------------------------
# Generate build configurations
#-----------------------------------------------------------------------------
CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/RobartsVTKConfigure.h.in
${CMAKE_CURRENT_BINARY_DIR}/RobartsVTKConfigure.h
)
IF(WIN32)
CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/BuildAndTest.bat.in
${CMAKE_CURRENT_BINARY_DIR}/BuildAndTest.bat
)
ELSE()
CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/BuildAndTest.sh.in
${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_FILES_DIRECTORY}/BuildAndTest.sh
)
ENDIF()
#-----------------------------------------------------------------------------
# Exports
#-----------------------------------------------------------------------------
SET(RobartsVTK_USE_FILE ${CMAKE_CURRENT_SOURCE_DIR}/UseRobartsVTK.cmake)
SET(RobartsVTK_TARGETS_FILE ${CMAKE_CURRENT_BINARY_DIR}/RobartsVTKTargets.cmake)
export(TARGETS ${RobartsVTK_LIBRARIES}
FILE ${RobartsVTK_TARGETS_FILE}
)
CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/RobartsVTKConfig.cmake.in
${CMAKE_CURRENT_BINARY_DIR}/RobartsVTKConfig.cmake
)
CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/RobartsVTKConfigVersion.cmake.in
${CMAKE_CURRENT_BINARY_DIR}/RobartsVTKConfigVersion.cmake
@ONLY)