-
Atkins, Charles Vernon authoredAtkins, Charles Vernon authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
CMakeLists.txt 854 B
#------------------------------------------------------------------------------#
# Distributed under the OSI-approved Apache License, Version 2.0. See
# accompanying file Copyright.txt for details.
#------------------------------------------------------------------------------#
add_executable(TestHDF5WriteRead TestHDF5WriteRead.cpp)
# Workaround for multiple versions of FindHDF5
if(HDF5_C_INCLUDE_DIRS)
target_include_directories(TestHDF5WriteRead PRIVATE ${HDF5_C_INCLUDE_DIRS})
else()
target_include_directories(TestHDF5WriteRead PRIVATE ${HDF5_INCLUDE_DIRS})
endif()
target_link_libraries(TestHDF5WriteRead adios2 gtest ${HDF5_C_LIBRARIES})
if(ADIOS2_HAVE_MPI)
target_link_libraries(TestHDF5WriteRead MPI::MPI_C)
set(extra_test_args EXEC_WRAPPER ${MPIEXEC_COMMAND})
endif()
gtest_add_tests(TARGET TestHDF5WriteRead ${extra_test_args})