2019-04-15 23:24:21 +00:00
|
|
|
##============================================================================
|
2015-09-16 21:16:07 +00:00
|
|
|
## Copyright (c) Kitware, Inc.
|
|
|
|
## All rights reserved.
|
|
|
|
## See LICENSE.txt for details.
|
|
|
|
##
|
|
|
|
## This software is distributed WITHOUT ANY WARRANTY; without even
|
|
|
|
## the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
## PURPOSE. See the above copyright notice for more information.
|
2019-04-15 23:24:21 +00:00
|
|
|
##============================================================================
|
2020-04-10 16:04:04 +00:00
|
|
|
cmake_minimum_required(VERSION 3.12...3.15 FATAL_ERROR)
|
2017-10-05 14:28:44 +00:00
|
|
|
project(MultiBackend CXX)
|
2015-09-16 21:16:07 +00:00
|
|
|
|
2016-08-22 17:18:36 +00:00
|
|
|
#Find the VTK-m package
|
2018-05-04 18:42:46 +00:00
|
|
|
find_package(VTKm REQUIRED)
|
|
|
|
find_package(Threads REQUIRED QUIET)
|
|
|
|
|
|
|
|
set(headers
|
|
|
|
IOGenerator.h
|
|
|
|
MultiDeviceGradient.h
|
|
|
|
TaskQueue.h
|
|
|
|
)
|
|
|
|
|
2018-01-10 21:36:40 +00:00
|
|
|
set(srcs
|
2018-05-04 18:42:46 +00:00
|
|
|
MultiBackend.cxx
|
2019-08-23 15:11:39 +00:00
|
|
|
MultiDeviceGradient.cxx
|
|
|
|
IOGenerator.cxx
|
2018-05-04 18:42:46 +00:00
|
|
|
)
|
2018-01-10 21:36:40 +00:00
|
|
|
|
2022-12-09 23:46:56 +00:00
|
|
|
if(TARGET vtkm::filter_vector_analysis)
|
2022-02-16 12:50:39 +00:00
|
|
|
add_executable(MultiBackend ${srcs} ${headers})
|
2022-12-09 23:46:56 +00:00
|
|
|
target_link_libraries(MultiBackend PRIVATE vtkm::filter_vector_analysis Threads::Threads)
|
2022-02-16 12:50:39 +00:00
|
|
|
vtkm_add_target_information(MultiBackend
|
|
|
|
DROP_UNUSED_SYMBOLS
|
|
|
|
MODIFY_CUDA_FLAGS
|
|
|
|
DEVICE_SOURCES ${srcs})
|
|
|
|
endif()
|