forked from LLNL/Umpire
-
Notifications
You must be signed in to change notification settings - Fork 0
/
umpire-config.cmake.in
63 lines (51 loc) · 1.72 KB
/
umpire-config.cmake.in
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
##############################################################################
# Copyright (c) 2016-24, Lawrence Livermore National Security, LLC and Umpire
# project contributors. See the COPYRIGHT file for details.
#
# SPDX-License-Identifier: (MIT)
##############################################################################
@PACKAGE_INIT@
include(CMakeFindDependencyMacro)
# cache the prefix dir (could be overriden by find_dependency)
set(UMPIRE_PACKAGE_PREFIX_DIR ${PACKAGE_PREFIX_DIR})
if (@UMPIRE_NEEDS_BLT_TPLS@)
set(BLT_TGTS "${CMAKE_CURRENT_LIST_DIR}/bltTargets.cmake")
if(EXISTS "${BLT_TGTS}")
include("${BLT_TGTS}")
endif()
unset(BLT_TGTS)
endif()
if (@UMPIRE_ENABLE_CUDA@ OR @UMPIRE_ENABLE_MPI@ OR @UMPIRE_ENABLE_IPC_SHARED_MEMORY@)
find_dependency(Threads)
endif ()
if (NOT TARGET camp)
set(UMPIRE_CAMP_DIR "@camp_DIR@")
if(NOT camp_DIR)
set(camp_DIR ${UMPIRE_CAMP_DIR})
endif()
find_dependency(camp CONFIG NO_DEFAULT_PATH PATHS
${camp_DIR}
${camp_DIR}/lib/cmake/camp
${UMPIRE_PACKAGE_PREFIX_DIR}
${UMPIRE_PACKAGE_PREFIX_DIR}/lib/cmake/camp)
endif ()
if (@UMPIRE_ENABLE_IPC_SHARED_MEMORY@)
find_dependency(Threads)
endif ()
if (NOT TARGET @UMPIRE_FMT_TARGET@)
set(UMPIRE_FMT_DIR "@fmt_DIR@")
if(NOT fmt_DIR)
set(fmt_DIR ${UMPIRE_FMT_DIR})
endif()
find_dependency(fmt CONFIG NO_DEFAULT_PATH PATHS
${fmt_DIR}
${fmt_DIR}/lib64/cmake/fmt
${UMPIRE_PACKAGE_PREFIX_DIR}
${UMPIRE_PACKAGE_PREFIX_DIR}/lib64/cmake/fmt)
endif ()
if (@UMPIRE_ENABLE_SQLITE_EXPERIMENTAL@)
find_package(SQLite3 REQUIRED)
endif()
include("${CMAKE_CURRENT_LIST_DIR}/BLTSetupTargets.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/umpire-targets.cmake")
check_required_components(@PROJECT_NAME@)