Skip to content

Commit cfbee66

Browse files
Create CMakeLists.txt
1 parent ed25e21 commit cfbee66

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

src/tests/stats/CMakeLists.txt

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
### Pre-process: .fpp -> .f90 via Fypp
2+
3+
# Create a list of the files to be preprocessed
4+
set(fppFiles
5+
test_median.fypp
6+
)
7+
8+
# Custom preprocessor flags
9+
if(DEFINED CMAKE_MAXIMUM_RANK)
10+
set(fyppFlags "-DMAXRANK=${CMAKE_MAXIMUM_RANK}")
11+
elseif(f03rank)
12+
set(fyppFlags)
13+
else()
14+
set(fyppFlags "-DVERSION90")
15+
endif()
16+
17+
fypp_f90("${fyppFlags}" "${fppFiles}" outFiles)
18+
19+
ADDTEST(corr)
20+
ADDTEST(cov)
21+
ADDTEST(mean)
22+
ADDTEST(median)
23+
ADDTEST(moment)
24+
ADDTEST(rawmoment)
25+
ADDTEST(var)
26+
ADDTEST(varn)
27+
ADDTEST(distribution_PRNG)
28+
29+
if(DEFINED CMAKE_MAXIMUM_RANK)
30+
if(${CMAKE_MAXIMUM_RANK} GREATER 7)
31+
ADDTEST(mean_f03)
32+
endif()
33+
elseif(f03rank)
34+
ADDTEST(mean_f03)
35+
endif()

0 commit comments

Comments
 (0)