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 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584
|
include(CMakeDependentOption)
cmake_dependent_option(VTK_USE_64BIT_TIMESTAMPS "Build VTK with 64 bit timestamps" OFF
"NOT CMAKE_SIZEOF_VOID_P GREATER 4" ON)
mark_as_advanced(VTK_USE_64BIT_TIMESTAMPS)
# Option to mangle VTK symbols
set(VTK_ABI_NAMESPACE_NAME
"<DEFAULT>"
CACHE STRING "Inline namespace name for mangling VTK symbols.")
mark_as_advanced(VTK_ABI_NAMESPACE_NAME)
if (VTK_ABI_NAMESPACE_NAME STREQUAL "<DEFAULT>")
# The default is to not have an ABI namespace.
# This is consistent with the existing practice.
set(VTK_ABI_NAMESPACE_NAME "")
endif ()
set_property(GLOBAL PROPERTY _vtk_abi_namespace_name "${VTK_ABI_NAMESPACE_NAME}")
if (VTK_ABI_NAMESPACE_NAME STREQUAL "")
set(VTK_ABI_NAMESPACE_BEGIN "")
set(VTK_ABI_NAMESPACE_END "")
else ()
message(STATUS "VTK ABI namespace: ${VTK_ABI_NAMESPACE_NAME}")
set(VTK_ABI_NAMESPACE_BEGIN "inline namespace ${VTK_ABI_NAMESPACE_NAME} {")
set(VTK_ABI_NAMESPACE_END "}")
endif ()
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/vtkABINamespace.h.in"
"${CMAKE_CURRENT_BINARY_DIR}/vtkABINamespace.h"
@ONLY)
if (CMAKE_SIZEOF_VOID_P GREATER 4)
set(vtk_use_64bit_ids_default ON)
else ()
set(vtk_use_64bit_ids_default OFF)
endif ()
option(VTK_USE_64BIT_IDS "Build VTK with 64 bit ids" "${vtk_use_64bit_ids_default}")
mark_as_advanced(VTK_USE_64BIT_IDS)
option(VTK_USE_FUTURE_CONST "Adds more const to APIs. Opt-in because it may break compatibility" OFF)
mark_as_advanced(VTK_USE_FUTURE_CONST)
option(VTK_DEBUG_LEAKS "Build leak checking support into VTK." OFF)
mark_as_advanced(VTK_DEBUG_LEAKS)
# See vtkDataArrayRange.h docs for more info on these:
cmake_dependent_option(VTK_DEBUG_RANGE_ITERATORS
"Detect usage errors with the for-range iterators (SLOW)." OFF
"CMAKE_BUILD_TYPE STREQUAL \"Debug\"" OFF)
mark_as_advanced(VTK_DEBUG_RANGE_ITERATORS)
cmake_dependent_option(VTK_ALWAYS_OPTIMIZE_ARRAY_ITERATORS
"Enable additional optimizations for array iterators in Debug builds." OFF
"NOT VTK_DEBUG_RANGE_ITERATORS" OFF)
mark_as_advanced(VTK_ALWAYS_OPTIMIZE_ARRAY_ITERATORS)
# This option determines the behavior of the New methods of vtkObject derived
# classes. If this option is off then only classes specifically using the
# vtkObjectFactoryNewMacro and vtkAbstractObjectFactoryNewMacro will allow for
# overrides. If the method is on then vtkStandardNewMacro will use the
# vtkObjectFactoryNewMacro's implementation body.
option(VTK_ALL_NEW_OBJECT_FACTORY
"Build all vtkObject derived classes with object factory new methods." OFF)
mark_as_advanced(VTK_ALL_NEW_OBJECT_FACTORY)
set(vtk_smp_sources)
set(vtk_smp_headers)
set(vtk_smp_nowrap_headers)
set(vtk_smp_templates)
set(vtk_smp_defines)
set(vtk_smp_libraries)
set(vtk_smp_enable_sequential 0)
set(vtk_smp_enable_stdthread 0)
set(vtk_smp_enable_tbb 0)
set(vtk_smp_enable_openmp 0)
set(VTK_SMP_IMPLEMENTATION_TYPE)
include("${CMAKE_CURRENT_SOURCE_DIR}/vtkSMPSelection.cmake")
set(vtk_object_base_defines)
# An optional dependency on memkind
set(vtk_memkind_libraries)
if (VTK_USE_MEMKIND)
vtk_module_find_package(
PACKAGE MEMKIND)
list(APPEND vtk_memkind_libraries
MEMKIND::MEMKIND)
# XXX(memkind-1.10): Once 1.10 is required, this is always true.
file(READ "${MEMKIND_INCLUDE_DIR}/memkind.h" memkind_h_contents)
set(memkind_has_dax_kmem 0)
# Look for the symbol in the header.
if (memkind_h_contents MATCHES " MEMKIND_DAX_KMEM[ ;\n]")
set(memkind_has_dax_kmem 1)
endif ()
list(APPEND vtk_object_base_defines "VTK_MEMKIND_HAS_DAX_KMEM=$<BOOL:${memkind_has_dax_kmem}>")
endif ()
# Generate the vtkTypeList_Create macros:
include("${CMAKE_CURRENT_SOURCE_DIR}/vtkCreateTypeListMacros.cmake")
CreateTypeListMacros(
VTK_TYPELISTMACRO_HEADER_CONTENTS
99
vtkTypeList_Create
"vtkTypeList::TypeList"
"vtkTypeList::NullType")
configure_file(vtkTypeListMacros.h.in vtkTypeListMacros.h)
# And the ArrayDispatch array list header:
option(VTK_DISPATCH_AOS_ARRAYS "Include array-of-structs vtkDataArray subclasses in dispatcher." ON)
option(VTK_DISPATCH_SOA_ARRAYS "Include struct-of-arrays vtkDataArray subclasses in dispatcher." OFF)
option(VTK_DISPATCH_TYPED_ARRAYS "Include vtkTypedDataArray subclasses (e.g. old mapped arrays) in dispatcher." OFF)
option(VTK_WARN_ON_DISPATCH_FAILURE "If enabled, vtkArrayDispatch will print a warning when a dispatch fails." OFF)
mark_as_advanced(
VTK_DISPATCH_AOS_ARRAYS
VTK_DISPATCH_SOA_ARRAYS
VTK_DISPATCH_TYPED_ARRAYS
VTK_WARN_ON_DISPATCH_FAILURE)
option(VTK_BUILD_SCALED_SOA_ARRAYS "Include struct-of-arrays with scaled vtkDataArray implementation." OFF)
include("${CMAKE_CURRENT_SOURCE_DIR}/vtkCreateArrayDispatchArrayList.cmake")
vtkArrayDispatch_default_array_setup()
vtkArrayDispatch_generate_array_header(VTK_ARRAYDISPATCH_ARRAY_LIST)
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/vtkArrayDispatchArrayList.h.in"
"${CMAKE_CURRENT_BINARY_DIR}/vtkArrayDispatchArrayList.h"
@ONLY)
# create a list of source files for explicit array type instantiations
set(instantiation_sources)
# steal the list of array types from vtkCreateArrayDispatchArrayList.cmake
foreach (INSTANTIATION_VALUE_TYPE IN LISTS vtkArrayDispatch_all_types)
# only instantiate fundamental types, not typedefs
if (INSTANTIATION_VALUE_TYPE STREQUAL "vtkIdType")
continue()
endif ()
# create a file suffix from the type
string(REPLACE " " "_" _suffix "${INSTANTIATION_VALUE_TYPE}")
set(_list "vtkSOADataArrayTemplateInstantiate")
if (VTK_BUILD_SCALED_SOA_ARRAYS)
list(APPEND _list "vtkScaledSOADataArrayTemplateInstantiate")
endif ()
# see comments in vtkGenericDataArray.h for explanation
if (INSTANTIATION_VALUE_TYPE MATCHES "(^| )long( |$)")
list(APPEND _list "vtkGenericDataArrayValueRangeInstantiate")
endif ()
# generate cxx file to instantiate template with this type
foreach (_prefix IN LISTS _list)
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/${_prefix}.cxx.in"
"${CMAKE_CURRENT_BINARY_DIR}/${_prefix}_${_suffix}.cxx"
@ONLY)
list(APPEND instantiation_sources
"${CMAKE_CURRENT_BINARY_DIR}/${_prefix}_${_suffix}.cxx")
endforeach ()
endforeach ()
set(classes
vtkAbstractArray
vtkAnimationCue
vtkArchiver
vtkArray
vtkArrayCoordinates
vtkArrayExtents
vtkArrayExtentsList
vtkArrayIterator
vtkArrayRange
vtkArraySort
vtkArrayWeights
vtkAtomicMutex
vtkBitArray
vtkBitArrayIterator
vtkBoxMuellerRandomSequence
vtkBreakPoint
vtkByteSwap
vtkCallbackCommand
vtkCharArray
vtkCollection
vtkCollectionIterator
vtkCommand
vtkCommonInformationKeyManager
vtkDataArray
vtkDataArrayCollection
vtkDataArrayCollectionIterator
vtkDataArraySelection
vtkDebugLeaks
vtkDebugLeaksManager
vtkDoubleArray
vtkDynamicLoader
vtkEventForwarderCommand
vtkFileOutputWindow
vtkFloatArray
vtkFloatingPointExceptions
vtkGarbageCollector
vtkGarbageCollectorManager
vtkGaussianRandomSequence
vtkIdList
vtkIdListCollection
vtkIdTypeArray
vtkIndent
vtkInformation
vtkInformationDataObjectKey
vtkInformationDoubleKey
vtkInformationDoubleVectorKey
vtkInformationIdTypeKey
vtkInformationInformationKey
vtkInformationInformationVectorKey
vtkInformationIntegerKey
vtkInformationIntegerPointerKey
vtkInformationIntegerVectorKey
vtkInformationIterator
vtkInformationKey
vtkInformationKeyLookup
vtkInformationKeyVectorKey
vtkInformationObjectBaseKey
vtkInformationObjectBaseVectorKey
vtkInformationRequestKey
vtkInformationStringKey
vtkInformationStringVectorKey
vtkInformationUnsignedLongKey
vtkInformationVariantKey
vtkInformationVariantVectorKey
vtkInformationVector
vtkIntArray
vtkLargeInteger
vtkLogger
vtkLongArray
vtkLongLongArray
vtkLookupTable
vtkMath
vtkMersenneTwister
vtkMinimalStandardRandomSequence
vtkMultiThreader
vtkOStrStreamWrapper
vtkOStreamWrapper
vtkObject
vtkObjectBase
vtkObjectFactory
vtkObjectFactoryCollection
vtkOldStyleCallbackCommand
vtkOutputWindow
vtkOverrideInformation
vtkOverrideInformationCollection
vtkPoints
vtkPoints2D
vtkPriorityQueue
vtkRandomPool
vtkRandomSequence
vtkReferenceCount
vtkScalarsToColors
vtkShortArray
vtkSignedCharArray
vtkSmartPointerBase
vtkSortDataArray
vtkStdString
vtkStringArray
vtkStringOutputWindow
vtkTimePointUtility
vtkTimeStamp
vtkUnsignedCharArray
vtkUnsignedIntArray
vtkUnsignedLongArray
vtkUnsignedLongLongArray
vtkUnsignedShortArray
vtkVariant
vtkVariantArray
vtkVersion
vtkVoidArray
vtkWeakPointerBase
vtkWeakReference
vtkWindow
vtkXMLFileOutputWindow
# These classes are deprecated.
vtkCriticalSection)
set(template_classes
vtkAOSDataArrayTemplate
vtkArrayDispatch
vtkArrayInterpolate
vtkArrayIteratorTemplate
vtkArrayPrint
vtkDenseArray
vtkGenericDataArray
vtkMappedDataArray
vtkSOADataArrayTemplate
vtkSparseArray
vtkTypedArray
vtkTypedDataArray)
set(nowrap_template_classes
vtkTypeList)
set(sources
vtkArrayIteratorTemplateInstantiate.cxx
vtkGenericDataArray.cxx
${instantiation_sources}
${vtk_smp_sources})
if (VTK_BUILD_SCALED_SOA_ARRAYS)
list (APPEND template_classes vtkScaledSOADataArrayTemplate)
set(VTK_USE_SCALED_SOA_ARRAYS 1)
endif ()
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/vtkVTK_USE_SCALED_SOA_ARRAYS.h.in"
"${CMAKE_CURRENT_BINARY_DIR}/vtkVTK_USE_SCALED_SOA_ARRAYS.h")
set(headers
vtkABI.h
vtkArrayIteratorIncludes.h
vtkAssume.h
vtkAutoInit.h
vtkBuffer.h
vtkCompiler.h
vtkDataArrayIteratorMacro.h
vtkDataArrayMeta.h
vtkDataArrayRange.h
vtkDeprecation.h
vtkEventData.h
vtkGenericDataArrayLookupHelper.h
vtkIOStream.h
vtkIOStreamFwd.h
vtkInformationInternals.h
vtkMathUtilities.h
vtkMatrixUtilities.h
vtkMeta.h
vtkNew.h
vtkRange.h
vtkRangeIterableTraits.h
vtkSetGet.h
vtkSmartPointer.h
vtkSystemIncludes.h
vtkTemplateAliasMacro.h
vtkTestDataArray.h
vtkType.h
vtkTypeTraits.h
vtkTypedDataArrayIterator.h
vtkVariantCast.h
vtkVariantCreate.h
vtkVariantExtract.h
vtkVariantInlineOperators.h
vtkWeakPointer.h
vtkWin32Header.h
vtkWindows.h
vtkWrappingHints.h
${vtk_smp_headers}
"${CMAKE_CURRENT_BINARY_DIR}/vtkABINamespace.h"
"${CMAKE_CURRENT_BINARY_DIR}/vtkArrayDispatchArrayList.h"
"${CMAKE_CURRENT_BINARY_DIR}/vtkMathConfigure.h"
"${CMAKE_CURRENT_BINARY_DIR}/vtkTypeListMacros.h"
"${CMAKE_CURRENT_BINARY_DIR}/vtkVTK_USE_SCALED_SOA_ARRAYS.h")
set(private_headers
"${CMAKE_CURRENT_BINARY_DIR}/vtkFloatingPointExceptionsConfigure.h")
set(templates
vtkArrayIteratorTemplateImplicit.txx
${vtk_smp_templates})
set(private_templates
vtkDataArrayPrivate.txx)
set(vtk_include_dirs)
vtk_module_find_package(
PACKAGE Threads)
set(VTK_MAX_THREADS "64" CACHE STRING
"Max number of threads vtkMultiThreader will allocate.")
mark_as_advanced(VTK_MAX_THREADS)
if (CMAKE_USE_PTHREADS_INIT AND CMAKE_USE_WIN32_THREADS_INIT)
if (DEFINED _vtk_thread_impl_output)
set(thread_impl_output "${_vtk_thread_impl_output}")
else ()
execute_process(
COMMAND "${CMAKE_C_COMPILER}" -v
OUTPUT_VARIABLE thread_impl_output
ERROR_VARIABLE thread_impl_output
RESULT_VARIABLE result
TIMEOUT 10)
if (result)
message(FATAL_ERROR
"Failed to determine the thread implementation in use by the "
"compiler.")
endif ()
string (REGEX REPLACE ".*Thread model: \((posix|win32)\).*" "\\1" thread_impl_output "${thread_impl_output}")
endif ()
set(_vtk_thread_impl_output "${thread_impl_output}"
CACHE INTERNAL "thread model detection")
if (thread_impl_output MATCHES "posix")
set(VTK_USE_PTHREADS 1)
elseif (thread_impl_output MATCHES "win32")
set(VTK_USE_WIN32_THREADS 1)
else ()
set(VTK_USE_PTHREADS 1)
endif ()
elseif (CMAKE_USE_PTHREADS_INIT)
set(VTK_USE_PTHREADS 1)
elseif (CMAKE_USE_WIN32_THREADS_INIT)
set(VTK_USE_WIN32_THREADS 1)
endif ()
# We can't check for the target since we're before VTK::CommonDataModel in the
# dependency graph.
if (VTK_MODULE_ENABLE_VTK_CommonDataModel)
list(APPEND vtk_include_dirs
"${CMAKE_CURRENT_BINARY_DIR}/../DataModel")
set_property(SOURCE vtkInformationDataObjectKey.cxx
PROPERTY
COMPILE_DEFINITIONS vtkCommonDataModel_ENABLED)
endif ()
if(WIN32)
list(APPEND classes
vtkWin32OutputWindow
vtkWin32ProcessOutputWindow)
list(APPEND sources
vtkWin32OutputWindowProcessEncoded.c)
endif()
if(ANDROID)
list(APPEND classes
vtkAndroidOutputWindow)
endif()
# Platform configuration tests.
include(TestBigEndian)
test_big_endian(VTK_WORDS_BIGENDIAN)
# vtkSMP header information.
set(smp_backends
OpenMP
Sequential
STDThread
TBB)
foreach (smp_backend IN LISTS smp_backends)
string(TOLOWER "${smp_backend}" smp_backend_lower)
string(TOUPPER "${smp_backend}" smp_backend_upper)
set("VTK_SMP_ENABLE_${smp_backend_upper}" "${vtk_smp_enable_${smp_backend_lower}}")
if (VTK_SMP_IMPLEMENTATION_TYPE STREQUAL smp_backend)
set("VTK_SMP_DEFAULT_IMPLEMENTATION_${smp_backend_upper}" 1)
else ()
set("VTK_SMP_DEFAULT_IMPLEMENTATION_${smp_backend_upper}" 0)
endif ()
endforeach ()
set(nowrap_headers
vtkCollectionRange.h
vtkDataArrayAccessor.h
vtkDataArrayTupleRange_AOS.h
vtkDataArrayTupleRange_Generic.h
vtkDataArrayValueRange_AOS.h
vtkDataArrayValueRange_Generic.h
vtkMathPrivate.hxx
${vtk_smp_nowrap_headers})
set(generated_headers
vtkBuild.h
vtkDebug.h
vtkDebugRangeIterators.h
vtkEndian.h
vtkFeatures.h
vtkLegacy.h
vtkOptions.h
vtkPlatform.h
vtkSMP.h
vtkThreads.h
vtkVersionFull.h
vtkVersionMacros.h)
foreach (generated_header IN LISTS generated_headers)
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/${generated_header}.in"
"${CMAKE_CURRENT_BINARY_DIR}/${generated_header}"
@ONLY)
list(APPEND headers
"${CMAKE_CURRENT_BINARY_DIR}/${generated_header}")
endforeach ()
include("${CMAKE_CURRENT_SOURCE_DIR}/vtkTypeArrays.cmake")
include(CheckCXXSourceCompiles)
macro(CHECK_CXX_EXPRESSION_COMPILES EXPRESSION FILES VARIABLE)
set(SOURCE "/* CHECK_CXX_EXPRESSION_COMPILES */\n")
foreach(FILE ${FILES})
set(SOURCE "${SOURCE}#include <${FILE}>\n")
endforeach()
set(SOURCE "${SOURCE}\nint main()\n{\n")
set(SOURCE "${SOURCE} static_cast<void>(${EXPRESSION});\n\n")
set(SOURCE "${SOURCE} return 0;\n}\n")
check_cxx_source_compiles("${SOURCE}" "${VARIABLE}")
endmacro()
# Check C++ <cmath> first, where the C++11 standard says these must be.
check_cxx_expression_compiles("std::isnan(0.0)" "cmath" VTK_HAS_STD_ISNAN)
check_cxx_expression_compiles("std::isinf(0.0)" "cmath" VTK_HAS_STD_ISINF)
check_cxx_expression_compiles("std::isfinite(0.0)" "cmath" VTK_HAS_STD_ISFINITE)
include(CheckSymbolExists)
# Check C99 <math.h> next, where the C99 standard says these must be.
# (they will be found even if they are defined as macros)
check_symbol_exists(isnan "math.h" VTK_HAS_ISNAN)
check_symbol_exists(isinf "math.h" VTK_HAS_ISINF)
check_symbol_exists(isfinite "math.h" VTK_HAS_ISFINITE)
# Check for finite() which is widespread, though non-standard.
check_symbol_exists(finite "math.h" VTK_HAS_FINITE)
# Check float.h last, where Windows keeps its underscore versions.
if(NOT VTK_HAS_ISNAN AND NOT VTK_HAS_STD_ISNAN)
check_symbol_exists(_isnan "float.h" VTK_HAS__ISNAN)
endif()
if(NOT VTK_HAS_FINITE AND NOT VTK_HAS_ISFINITE AND NOT VTK_HAS_STD_ISFINITE)
check_symbol_exists(_finite "float.h" VTK_HAS__FINITE)
endif()
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/vtkMathConfigure.h.in"
"${CMAKE_CURRENT_BINARY_DIR}/vtkMathConfigure.h")
# Figure out if feenableexcept and fedisableexcept functions are present
include(CheckIncludeFile)
check_include_file("fenv.h" HAVE_FENV_H)
if(HAVE_FENV_H)
set(CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)
if(UNIX)
set(CMAKE_REQUIRED_LIBRARIES m)
endif()
check_symbol_exists(feenableexcept "fenv.h" VTK_HAS_FEENABLEEXCEPT)
set(CMAKE_REQUIRED_LIBRARIES)
endif()
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/vtkFloatingPointExceptionsConfigure.h.in"
"${CMAKE_CURRENT_BINARY_DIR}/vtkFloatingPointExceptionsConfigure.h")
set_property(SOURCE vtkObjectBase.cxx
PROPERTY
COMPILE_DEFINITIONS ${vtk_object_base_defines})
if(MSVC)
set_source_files_properties(
vtkDataArray.cxx
PROPERTIES
COMPILE_FLAGS /bigobj)
endif()
vtk_module_add_module(VTK::CommonCore
HEADER_DIRECTORIES
CLASSES ${classes}
TEMPLATE_CLASSES ${template_classes}
NOWRAP_TEMPLATE_CLASSES ${nowrap_template_classes}
SOURCES ${sources}
TEMPLATES ${templates}
HEADERS ${headers}
NOWRAP_HEADERS ${nowrap_headers}
PRIVATE_HEADERS ${private_headers}
PRIVATE_TEMPLATES ${private_templates})
vtk_add_test_mangling(VTK::CommonCore
EXEMPTIONS GetVTKVersion)
if (vtk_include_dirs)
vtk_module_include(VTK::CommonCore
PRIVATE
${vtk_include_dirs})
endif ()
vtk_module_link(VTK::CommonCore
PUBLIC
Threads::Threads
${vtk_smp_libraries}
${vtk_memkind_libraries}
PRIVATE
# Need nsl to resolve gethostbyname on SunOS-5.8 and socket also
$<$<PLATFORM_ID:SunOS>:socket>
$<$<PLATFORM_ID:SunOS>:nsl>
$<$<PLATFORM_ID:Android>:log>
)
vtk_module_compile_features(VTK::CommonCore
PUBLIC
cxx_std_11)
|