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-03-26 15:50:06 +00:00
|
|
|
cmake_minimum_required(VERSION 3.8...3.14 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
|
|
|
|
2019-04-09 13:52:53 +00:00
|
|
|
add_executable(CosmoCenterFinder CosmoCenterFinder.cxx)
|
|
|
|
add_executable(CosmoHaloFinder CosmoHaloFinder.cxx)
|
2019-01-14 21:50:08 +00:00
|
|
|
target_link_libraries(CosmoCenterFinder PRIVATE vtkm_filter)
|
|
|
|
target_link_libraries(CosmoHaloFinder PRIVATE vtkm_filter)
|
2019-04-09 13:52:53 +00:00
|
|
|
|
|
|
|
if(TARGET vtkm::cuda)
|
|
|
|
set_source_files_properties(CosmoCenterFinder.cxx CosmoCenterFinder.cxx PROPERTIES LANGUAGE "CUDA")
|
|
|
|
endif()
|