eccodes/ifs_samples/grib1/CMakeLists.txt

20 lines
655 B
CMake
Raw Normal View History

2013-04-03 10:45:13 +00:00
set( _basedir grib1 )
list( APPEND ifs_samples_${_basedir}
gg_ml.tmpl
gg_sfc.tmpl
sh_ml.tmpl
sh_sfc.tmpl
)
install( FILES ${ECCODES_SAMPLES_FILES} ${ifs_samples_${_basedir}}
DESTINATION ${CMAKE_INSTALL_PREFIX}/${ECCODES_IFS_SAMPLES_SUFF}/${_basedir}
2013-04-03 10:45:13 +00:00
PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ )
file( COPY ${ifs_samples_${_basedir}}
DESTINATION ${CMAKE_BINARY_DIR}/${ECCODES_IFS_SAMPLES_SUFF}/${_basedir} )
# Also copy the ifs sample files to the build dir (for developer mode)
file( COPY ${ECCODES_SAMPLES_FILES} ${ifs_samples_${_basedir}}
DESTINATION ${CMAKE_CURRENT_BINARY_DIR} )