blob: dcf883cdbfdf9a01dfa532834212ed540ffdc848 (
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
|
cmake_minimum_required (VERSION 3.1.0)
PROJECT (HDF5_TOOLS_MISC_VDS)
#-----------------------------------------------------------------------------
# Setup include Directories
#-----------------------------------------------------------------------------
INCLUDE_DIRECTORIES (${HDF5_TOOLS_SRC_DIR}/lib)
MACRO (ADD_H5_GENERATOR genfile)
add_executable (${genfile} ${HDF5_TOOLS_MISC_VDS_SOURCE_DIR}/${genfile}.c)
TARGET_NAMING (${genfile} STATIC)
TARGET_C_PROPERTIES (${genfile} STATIC " " " ")
target_link_libraries (${genfile} ${HDF5_LIB_TARGET} ${HDF5_TOOLS_LIB_TARGET})
set_target_properties (${genfile} PROPERTIES FOLDER generator/tools)
ENDMACRO (ADD_H5_GENERATOR genfile)
# generator executables
set (H5_GENERATORS
UC_1_one_dim_gen
UC_2_two_dims_gen
UC_3_gaps_gen
UC_4_printf_gen
UC_5_stride_gen
)
foreach (gen ${H5_GENERATORS})
ADD_H5_GENERATOR (${gen})
endforeach (gen ${H5_GENERATORS})
|