mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-06 14:56:51 +08:00
24 lines
712 B
CMake
24 lines
712 B
CMake
cmake_minimum_required (VERSION 3.10)
|
|
project (HDF5_TOOLS_TEST_MISC_VDS C)
|
|
|
|
MACRO (ADD_H5_GENERATOR genfile)
|
|
add_executable (${genfile} ${HDF5_TOOLS_TEST_MISC_VDS_SOURCE_DIR}/${genfile}.c)
|
|
target_include_directories(${genfile} PRIVATE "${HDF5_SRC_DIR};${HDF5_BINARY_DIR}")
|
|
TARGET_C_PROPERTIES (${genfile} STATIC)
|
|
target_link_libraries (${genfile} PRIVATE ${HDF5_LIB_TARGET} ${HDF5_TOOLS_LIB_TARGET})
|
|
set_target_properties (${genfile} PROPERTIES FOLDER generator/tools)
|
|
ENDMACRO ()
|
|
|
|
# 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 ()
|