-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
29 lines (24 loc) · 1.07 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
##============================================================================
## 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.8...3.15 FATAL_ERROR)
project(mirtest CXX)
# Boost
FIND_PACKAGE(Boost COMPONENTS program_options REQUIRED)
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})
# Find the VTK-m package
find_package(VTKm REQUIRED QUIET)
add_executable(mirtest mirtest.cxx makedata.h)
target_link_libraries(mirtest PRIVATE vtkm_cont vtkm_filter vtkm_io ${Boost_LIBRARIES})
vtkm_add_target_information(mirtest
DROP_UNUSED_SYMBOLS MODIFY_CUDA_FLAGS
DEVICE_SOURCES mirtest.cxx)
if(TARGET vtkm::tbb)
target_compile_definitions(mirtest PRIVATE BUILDING_TBB_VERSION)
endif()