mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-30 16:10:44 +08:00
changed back
This commit is contained in:
commit
15fc02f86d
@ -3,22 +3,6 @@ IF(BUILD_SHARED_LIBS AND WIN32)
|
||||
remove_definitions(-DDLL_NETCDF)
|
||||
ENDIF()
|
||||
|
||||
# These generate some files used in ncdump testing
|
||||
# Specifically, they generate ctest0.nc ctest0_64.nc
|
||||
# Before, these .nc files were placed in the same place as the
|
||||
# .c file: namely build/ncdump.
|
||||
# This complicates the shell tests that use it.
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CONFIG_TYPE}/ctest.c
|
||||
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/ref_ctest.c"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/ctest.c"
|
||||
)
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/ctest64.c
|
||||
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/ref_ctest64.c"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/ctest64.c"
|
||||
)
|
||||
|
||||
SET(ncdump_FILES ncdump.c vardata.c dumplib.c indent.c nctime0.c utils.c nciter.c)
|
||||
SET(nccopy_FILES nccopy.c nciter.c chunkspec.c utils.c dimmap.c)
|
||||
|
||||
@ -118,8 +102,9 @@ ENDIF()
|
||||
## Start adding tests in the appropriate order
|
||||
add_sh_test(ncdump run_tests)
|
||||
add_sh_test(ncdump tst_64bit)
|
||||
add_bin_test(ncdump ctest)
|
||||
add_bin_test(ncdump ctest64)
|
||||
add_bin_test_no_prefix(ref_ctest)
|
||||
add_bin_test_no_prefix(ref_ctest64)
|
||||
add_sh_test(ncdump tst_ctest)
|
||||
add_sh_test(ncdump tst_output)
|
||||
add_sh_test(ncdump tst_lengths)
|
||||
add_sh_test(ncdump tst_calendars)
|
||||
|
Loading…
Reference in New Issue
Block a user