2012-08-29 06:31:07 +08:00
|
|
|
SET(CDL_EXAMPLE_TESTS create_sample_files do_comps)
|
|
|
|
|
|
|
|
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()
|
|
|
|
|
2017-11-23 02:37:00 +08:00
|
|
|
SET_TESTS_PROPERTIES(cdl_do_comps PROPERTIES DEPENDS cdo_create_sample_files)
|
2013-06-04 00:42:04 +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}")
|