File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 7
7
include (CMakeFindDependencyMacro )
8
8
9
9
set (DDC_BUILD_DOUBLE_PRECISION @DDC_BUILD_DOUBLE_PRECISION@ )
10
- set (DDC_BUILD_KERNELS_FFT @DDC_BUILD_KERNELS_FFT@ )
11
- set (DDC_BUILD_KERNELS_SPLINES @DDC_BUILD_KERNELS_SPLINES@ )
12
- set (DDC_BUILD_PDI_WRAPPER @DDC_BUILD_PDI_WRAPPER@ )
13
10
14
11
find_package (Kokkos 4.4...4.5 )
15
12
@@ -40,4 +37,10 @@ foreach(target core fft pdi splines)
40
37
endif ()
41
38
endforeach ()
42
39
40
+ foreach (target_component fft pdi splines )
41
+ if (TARGET DDC::impl::ddc_${target_component} )
42
+ set (DDC_${target_component}_FOUND TRUE )
43
+ endif ()
44
+ endforeach ()
45
+
43
46
check_required_components (DDC )
Original file line number Diff line number Diff line change 5
5
cmake_minimum_required (VERSION 3.22 )
6
6
project (test -installed-ddc LANGUAGES CXX )
7
7
8
- find_package (DDC REQUIRED )
8
+ find_package (DDC REQUIRED COMPONENTS fft pdi splines )
9
9
10
10
message ("DDC options:" )
11
11
message ("DDC_BUILD_DOUBLE_PRECISION=${DDC_BUILD_DOUBLE_PRECISION} " )
12
- message ("DDC_BUILD_KERNELS_FFT =${DDC_BUILD_KERNELS_FFT } " )
13
- message ("DDC_BUILD_KERNELS_SPLINES =${DDC_BUILD_KERNELS_SPLINES } " )
14
- message ("DDC_BUILD_PDI_WRAPPER =${DDC_BUILD_PDI_WRAPPER } " )
12
+ message ("DDC_fft_FOUND =${DDC_fft_FOUND } " )
13
+ message ("DDC_splines_FOUND =${DDC_splines_FOUND } " )
14
+ message ("DDC_pdi_FOUND =${DDC_pdi_FOUND } " )
15
15
16
16
add_executable (main main.cpp )
17
17
target_link_libraries (main PRIVATE DDC::core DDC::fft DDC::pdi DDC::splines )
You can’t perform that action at this time.
0 commit comments