vtk-m/examples/multi_backend/CMakeLists.txt

37 lines
1.1 KiB
CMake
Raw Normal View History

2019-04-15 23:24:21 +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
##============================================================================
2019-08-20 14:36:53 +00:00
cmake_minimum_required(VERSION 3.8...3.15 FATAL_ERROR)
project(MultiBackend CXX)
#Find the VTK-m package
find_package(VTKm REQUIRED)
find_package(Threads REQUIRED QUIET)
set(headers
IOGenerator.h
MultiDeviceGradient.h
TaskQueue.h
)
set(device_srcs
MultiDeviceGradient.cxx
)
set(srcs
IOGenerator.cxx
MultiBackend.cxx
)
add_executable(MultiBackend ${device_srcs} ${srcs} ${headers})
target_link_libraries(MultiBackend PRIVATE vtkm_filter Threads::Threads)
vtkm_add_target_information(MultiBackend
MODIFY_CUDA_FLAGS
DEVICE_SOURCES ${device_srcs})