diff options
author | David Young <dyoung@hdfgroup.org> | 2020-09-27 20:03:44 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-09-27 20:03:44 (GMT) |
commit | 08034972bc4818e8550445aa7f4fd0b315800190 (patch) | |
tree | 14ab13613f3c411d0b3248455244f29418ef887b /testpar/CMakeLists.txt | |
parent | d20e1274a7bbf8ab1f87f3ebd61cea82ac8caf53 (diff) | |
parent | aa08db839e6aea89487be985704d57a0e424b21b (diff) | |
download | hdf5-08034972bc4818e8550445aa7f4fd0b315800190.zip hdf5-08034972bc4818e8550445aa7f4fd0b315800190.tar.gz hdf5-08034972bc4818e8550445aa7f4fd0b315800190.tar.bz2 |
Merge remote-tracking branch 'hdffv/develop' into rebased-fprintf-experiment
Diffstat (limited to 'testpar/CMakeLists.txt')
-rw-r--r-- | testpar/CMakeLists.txt | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/testpar/CMakeLists.txt b/testpar/CMakeLists.txt index a9f45d5..46bfb37 100644 --- a/testpar/CMakeLists.txt +++ b/testpar/CMakeLists.txt @@ -39,7 +39,14 @@ else () endif () set_target_properties (testphdf5 PROPERTIES FOLDER test/par) -MACRO (ADD_H5P_EXE file) +#----------------------------------------------------------------------------- +# Add Target to clang-format +#----------------------------------------------------------------------------- +if (HDF5_ENABLE_FORMATTERS) + clang_format (HDF5_TEST_PAR_testphdf5_FORMAT testphdf5) +endif () + +macro (ADD_H5P_EXE file) add_executable (${file} ${HDF5_TEST_PAR_SOURCE_DIR}/${file}.c) target_compile_options(${file} PRIVATE "${HDF5_CMAKE_C_FLAGS}") target_include_directories (${file} @@ -59,7 +66,14 @@ MACRO (ADD_H5P_EXE file) ) endif () set_target_properties (${file} PROPERTIES FOLDER test/par) -ENDMACRO (ADD_H5P_EXE file) + + #----------------------------------------------------------------------------- + # Add Target to clang-format + #----------------------------------------------------------------------------- + if (HDF5_ENABLE_FORMATTERS) + clang_format (HDF5_TEST_PAR_${file}_FORMAT ${file}) + endif () +endmacro (ADD_H5P_EXE file) set (H5P_TESTS t_mpi |