2019-04-15 23:24:21 +00:00
|
|
|
##============================================================================
|
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.
|
2019-04-15 23:24:21 +00:00
|
|
|
##============================================================================
|
2020-04-10 16:04:04 +00:00
|
|
|
cmake_minimum_required(VERSION 3.12...3.15 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)
|
2022-12-09 23:46:56 +00:00
|
|
|
target_link_libraries(CosmoCenterFinder PRIVATE vtkm::filter_core)
|
|
|
|
target_link_libraries(CosmoHaloFinder PRIVATE vtkm::filter_core)
|
2019-04-09 13:52:53 +00:00
|
|
|
|
2019-09-11 12:45:36 +00:00
|
|
|
vtkm_add_target_information(CosmoCenterFinder CosmoHaloFinder
|
2019-09-09 16:31:01 +00:00
|
|
|
DROP_UNUSED_SYMBOLS
|
2019-07-08 21:10:50 +00:00
|
|
|
MODIFY_CUDA_FLAGS
|
2019-09-11 12:45:36 +00:00
|
|
|
DEVICE_SOURCES
|
|
|
|
CosmoCenterFinder.cxx CosmoHaloFinder.cxx)
|