2017-09-05 22:36: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.
|
|
|
|
##
|
2017-09-20 21:33:44 +00:00
|
|
|
## Copyright 2015 National Technology & Engineering Solutions of Sandia, LLC (NTESS).
|
2017-09-05 22:36:21 +00:00
|
|
|
## Copyright 2015 UT-Battelle, LLC.
|
|
|
|
## Copyright 2015 Los Alamos National Security.
|
|
|
|
##
|
2017-09-20 21:33:44 +00:00
|
|
|
## Under the terms of Contract DE-NA0003525 with NTESS,
|
2017-09-05 22:36:21 +00:00
|
|
|
## the U.S. Government retains certain rights in this software.
|
|
|
|
## Under the terms of Contract DE-AC52-06NA25396 with Los Alamos National
|
|
|
|
## Laboratory (LANL), the U.S. Government retains certain rights in
|
|
|
|
## this software.
|
|
|
|
##
|
|
|
|
##=============================================================================
|
2019-01-09 15:04:34 +00:00
|
|
|
cmake_minimum_required(VERSION 3.8...3.13 FATAL_ERROR)
|
2017-12-29 18:15:36 +00:00
|
|
|
project(CosmoTools CXX)
|
|
|
|
|
2017-09-05 22:36:21 +00:00
|
|
|
#Find the VTK-m package
|
2017-12-29 18:15:36 +00:00
|
|
|
find_package(VTKm REQUIRED QUIET)
|
2017-09-05 22:36:21 +00:00
|
|
|
|
2017-12-29 18:15:36 +00:00
|
|
|
if(TARGET vtkm::cuda)
|
2018-11-27 17:56:00 +00:00
|
|
|
vtkm_compile_as_cuda(cu_srcs CosmoCenterFinder.cxx)
|
|
|
|
add_executable(CosmoCenterFinder ${cu_srcs})
|
2017-09-05 22:36:21 +00:00
|
|
|
|
2018-11-27 17:56:00 +00:00
|
|
|
vtkm_compile_as_cuda(cu_srcs CosmoHaloFinder.cxx)
|
|
|
|
add_executable(CosmoHaloFinder ${cu_srcs})
|
|
|
|
else()
|
|
|
|
add_executable(CosmoCenterFinder CosmoCenterFinder.cxx)
|
|
|
|
add_executable(CosmoHaloFinder CosmoHaloFinder.cxx)
|
2017-09-05 22:36:21 +00:00
|
|
|
endif()
|
|
|
|
|
2018-11-27 17:56:00 +00:00
|
|
|
target_link_libraries(CosmoCenterFinder PRIVATE vtkm_cont)
|
|
|
|
target_link_libraries(CosmoHaloFinder PRIVATE vtkm_cont)
|