mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
tutorial CMakeLists file update
This commit is contained in:
parent
85180b465f
commit
176dc92eb5
@ -1,7 +1,17 @@
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
##============================================================================
|
||||
## 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.
|
||||
##============================================================================
|
||||
cmake_minimum_required(VERSION 3.12...3.15 FATAL_ERROR)
|
||||
project(VTKm_tut)
|
||||
|
||||
find_package(VTKm REQUIRED)
|
||||
#Find the VTK-m package
|
||||
find_package(VTKm REQUIRED QUIET)
|
||||
|
||||
add_executable(tut_io tut_io.cxx)
|
||||
target_link_libraries(tut_io PUBLIC vtkm_filter vtkm_io)
|
||||
@ -33,6 +43,12 @@ target_link_libraries(tut_point_to_cell PUBLIC vtkm_cont vtkm_filter vtkm_io)
|
||||
add_executable(tut_extract_edges tut_extract_edges.cxx)
|
||||
target_link_libraries(tut_extract_edges PUBLIC vtkm_cont vtkm_filter vtkm_io)
|
||||
|
||||
vtkm_add_target_information(tut_io tut_contour tut_contour_2fields tut_2filters tut_mag_grad tut_rendering tut_error_handling tut_logging tut_point_to_cell tut_extract_edges
|
||||
DROP_UNUSED_SYMBOLS
|
||||
MODIFY_CUDA_FLAGS
|
||||
DEVICE_SOURCES
|
||||
tut_io.cxx tut_contour.cxx tut_contour_2fields.cxx tut_2filters.cxx tut_mag_grad.cxx tut_rendering.cxx tut_error_handling.cxx tut_logging.cxx tut_point_to_cell.cxx tut_extract_edges.cxx)
|
||||
|
||||
|
||||
# Copy the data file to be adjacent to the binaries
|
||||
file(GENERATE OUTPUT "$<TARGET_FILE_DIR:tut_io>/data/kitchen.vtk" INPUT "${CMAKE_CURRENT_SOURCE_DIR}/data/kitchen.vtk")
|
||||
|
Loading…
Reference in New Issue
Block a user