forked from lattice/quda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
QUDAConfig.cmake.in
54 lines (39 loc) · 1.1 KB
/
QUDAConfig.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
@PACKAGE_INIT@
include(CMakeFindDependencyMacro)
set(QUDA_QMP @QUDA_QMP@)
set(QUDA_MPI @QUDA_MPI@)
set(QUDA_QIO @QUDA_QIO@)
set(QUDA_OPENMP @QUDA_OPENMP@)
set(QUDA_QDPJIT @QUDA_QDPJIT@)
set(QUDA_GITVERSION @GITVERSION@)
set(QUDA_PRECISION @QUDA_PRECISION@)
set(QUDA_RECONSTRUCT @QUDA_RECONSTRUCT@)
set(QUDA_TARGET_CUDA @QUDA_TARGET_CUDA@)
set(QUDA_TARGET_HIP @QUDA_TARGET_HIP@)
set(QUDA_NVSHMEM @QUDA_NVSHMEM@)
if( QUDA_QMP AND QUDA_MPI )
message(FATAL_ERROR "Cannot have both QMP and MPI configured")
endif()
# Everyone needs this
find_dependency(Threads REQUIRED)
if( QUDA_QMP )
find_dependency(QMP REQUIRED)
endif()
if( QUDA_MPI )
find_dependency(MPI REQUIRED)
endif()
if( QUDA_QIO )
find_dependency(QIO REQUIRED)
endif()
if( QUDA_OPENMP )
find_dependency(OpenMP REQUIRED)
endif()
if( QUDA_TARGET_CUDA )
include(${CMAKE_CURRENT_LIST_DIR}/find_target_cuda_dependencies.cmake)
elseif(QUDA_TARGET_HIP )
include(${CMAKE_CURRENT_LIST_DIR}/find_target_hip_dependencies.cmake )
endif()
if( QUDA_QDPJIT )
find_dependency( QDPXX REQUIRED )
endif()
include(${CMAKE_CURRENT_LIST_DIR}/QUDATargets.cmake)