-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bbacd70
commit 38e2fd0
Showing
3 changed files
with
61 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
############################################################################### | ||
# Copyright (c) Lawrence Livermore National Security, LLC and other Ascent | ||
# Project developers. See top-level LICENSE AND COPYRIGHT files for dates and | ||
# other details. No copyright assignment is required to contribute to Ascent. | ||
############################################################################### | ||
|
||
############################################################################### | ||
# Setup ANARI | ||
############################################################################### | ||
|
||
if(NOT ANARI_DIR) | ||
MESSAGE(FATAL_ERROR "ANARI support needs explicit ANARI_DIR") | ||
endif() | ||
|
||
MESSAGE(STATUS "Looking for ANARI using ANARI_DIR = ${ANARI_DIR}") | ||
|
||
set(ANARI_DIR_ORIG ${ANARI_DIR}) | ||
set(ANARI_FOUND TRUE) | ||
|
||
file(GLOB ANARI_DIR "${ANARI_DIR}/lib/cmake/anari-*") | ||
if(NOT EXISTS ${ANARI_DIR}/anariConfig.cmake) | ||
MESSAGE(FATAL_ERROR "Could not find ANARI CMake at (${ANARI_DIR}/lib/cmake/anari-*)") | ||
endif() | ||
|
||
############################################################################### | ||
# Import ANARI CMake targets | ||
############################################################################### | ||
#find_package(anari REQUIRED) | ||
find_package(anari REQUIRED | ||
NO_DEFAULT_PATH | ||
PATHS ${ANARI_DIR}) | ||
if(NOT TARGET vtkm::anari) | ||
message(FATAL_ERROR "vtkm::anari not found, check your VTK-m install") | ||
endif() | ||
|