summaryrefslogtreecommitdiffstats
path: root/HDF5Examples/C/H5D/C_sourcefiles.cmake
blob: 87e0d6f12d46a68c97f63c89cd915c43cd3b1238 (plain)
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
#-----------------------------------------------------------------------------
# Define Sources, one file per application
#-----------------------------------------------------------------------------
set (examples)

set (common_examples
    h5ex_d_alloc
    h5ex_d_checksum
    h5ex_d_chunk
    h5ex_d_compact
    h5ex_d_extern
    h5ex_d_fillval
    h5ex_d_hyper
    h5ex_d_rdwr
    h5ex_d_unlimadd
    h5ex_d_unlimmod
)

if (HDF5_ENABLE_Z_LIB_SUPPORT)
  set (common_examples ${common_examples}
      h5ex_d_gzip
      h5ex_d_shuffle
      h5ex_d_unlimgzip
  )
endif ()

if (HDF5_ENABLE_SZIP_SUPPORT)
  set (common_examples ${common_examples}
      h5ex_d_szip
  )
endif ()

if (HDF5_VERSION_MAJOR VERSION_GREATER_EQUAL "1.8" AND NOT ${${EXAMPLE_VARNAME}_USE_16_API})
  set (1_8_examples
      h5ex_d_nbit
      h5ex_d_sofloat
      h5ex_d_soint
      h5ex_d_transform
  )
else ()
  set (1_8_examples)
endif ()