netcdf-c/hdf4_test/CMakeLists.txt

18 lines
654 B
CMake
Raw Normal View History

2018-03-05 18:45:18 +08:00
# Copy some test files from current source dir to out-of-tree build dir.
FILE(GLOB COPY_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*.sh ${CMAKE_CURRENT_SOURCE_DIR}/*.hdf4)
FILE(COPY ${COPY_FILES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/)
IF(MSVC)
FILE(COPY ${COPY_FILES} DESTINATION ${RUNTIME_OUTPUT_DIRECTORY}/)
ENDIF()
IF(USE_HDF4_FILE_TESTS AND NOT MSVC)
build_bin_test_no_prefix(tst_interops2)
build_bin_test_no_prefix(tst_interops3)
2018-03-05 19:52:53 +08:00
add_bin_test(hdf4_test tst_chunk_hdf4)
2018-03-05 18:45:18 +08:00
add_bin_test(hdf4_test tst_h4_lendian)
2018-04-05 04:11:44 +08:00
add_bin_test(hdf4_test tst_hdf4_extra)
2018-03-05 18:45:18 +08:00
add_sh_test(hdf4_test run_get_hdf4_files)
add_sh_test(hdf4_test run_formatx_hdf4)
ENDIF()