2012-08-04 06:24:29 +08:00
|
|
|
SET(nctest_SRC add.c atttests.c cdftests.c dimtests.c driver.c emalloc.c error.c misctest.c rec.c slabs.c val.c vardef.c varget.c vargetg.c varput.c varputg.c vartests.c vputget.c vputgetg.c)
|
|
|
|
|
2015-11-10 03:30:27 +08:00
|
|
|
FILE(GLOB COPY_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*.nc ${CMAKE_CURRENT_SOURCE_DIR}/*.sh)
|
2012-08-08 04:21:44 +08:00
|
|
|
FILE(COPY ${COPY_FILES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/)
|
|
|
|
|
2015-11-10 03:30:27 +08:00
|
|
|
###
|
|
|
|
# Can't use macro since
|
|
|
|
# there are multiple sources.
|
|
|
|
###
|
2012-08-04 06:24:29 +08:00
|
|
|
ADD_EXECUTABLE(nctest ${nctest_SRC})
|
|
|
|
TARGET_LINK_LIBRARIES(nctest netcdf)
|
|
|
|
ADD_TEST(nctest ${EXECUTABLE_OUTPUT_PATH}/nctest)
|
2013-06-04 00:42:04 +08:00
|
|
|
|
2015-11-10 03:30:27 +08:00
|
|
|
add_bin_test_no_prefix(tst_rename)
|
2017-04-04 11:39:44 +08:00
|
|
|
add_sh_test(nctest compare_test_files)
|
2018-04-27 04:38:56 +08:00
|
|
|
IF(HAVE_BASH)
|
|
|
|
SET_TESTS_PROPERTIES(nctest_compare_test_files PROPERTIES DEPENDS nctest)
|
|
|
|
ENDIF(HAVE_BASH)
|