2018-12-05 07:51:40 +08:00
|
|
|
# Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
|
|
|
# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014,
|
|
|
|
# 2015, 2016, 2017, 2018
|
|
|
|
# University Corporation for Atmospheric Research/Unidata.
|
|
|
|
|
|
|
|
# See netcdf-c/COPYRIGHT file for more info.
|
|
|
|
|
2017-12-02 05:01:07 +08:00
|
|
|
SET(CDL_EXAMPLE_TESTS do_comps)
|
2012-08-29 06:31:07 +08:00
|
|
|
|
|
|
|
FILE(GLOB COPY_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*.sh ${CMAKE_CURRENT_SOURCE_DIR}/*.cdl)
|
|
|
|
FILE(COPY ${COPY_FILES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR} FILE_PERMISSIONS OWNER_WRITE OWNER_READ OWNER_EXECUTE)
|
|
|
|
|
|
|
|
FOREACH(F ${CDL_EXAMPLE_TESTS})
|
2014-04-22 01:15:33 +08:00
|
|
|
add_sh_test(cdl ${F})
|
2012-08-29 06:31:07 +08:00
|
|
|
ENDFOREACH()
|
|
|
|
|
2018-04-26 18:36:26 +08:00
|
|
|
IF(HAVE_BASH)
|
|
|
|
SET_TESTS_PROPERTIES(cdl_do_comps PROPERTIES DEPENDS C_tests_simple_xy_wr)
|
|
|
|
SET_TESTS_PROPERTIES(cdl_do_comps PROPERTIES DEPENDS C_tests_sfc_pres_temp_wr)
|
|
|
|
SET_TESTS_PROPERTIES(cdl_do_comps PROPERTIES DEPENDS C_test_pres_temp_4D_wr)
|
|
|
|
ENDIF(HAVE_BASH)
|
2017-11-23 03:10:58 +08:00
|
|
|
|
2012-08-29 06:31:07 +08:00
|
|
|
SET(CLEANFILES simple_xy.nc sfc_pres_temp.nc pres_temp_4D.nc)
|
|
|
|
SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${CLEANFILES}")
|