GRIB-838: CMake: IFS sample files not copied to build directory

This commit is contained in:
Shahram Najm 2015-09-24 16:05:30 +01:00
parent 77e108821e
commit 6a31fdedbc
4 changed files with 19 additions and 3 deletions

View File

@ -7,9 +7,13 @@ list( APPEND ifs_samples_${_basedir}
sh_sfc.tmpl
)
install( FILES ${ECCODES_SAMPLES_FILES} ${ifs_samples_${_basedir}}
install( FILES ${ECCODES_SAMPLES_FILES} ${ifs_samples_${_basedir}}
DESTINATION ${CMAKE_INSTALL_PREFIX}/${ECCODES_IFS_SAMPLES_SUFF}/${_basedir}
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} )

View File

@ -13,3 +13,7 @@ install( FILES ${ECCODES_SAMPLES_FILES} ${ifs_samples_${_basedir}}
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} )

View File

@ -7,9 +7,13 @@ list( APPEND ifs_samples_${_basedir}
sh_sfc.tmpl
)
install( FILES ${ECCODES_SAMPLES_FILES} ${ifs_samples_${_basedir}}
install( FILES ${ECCODES_SAMPLES_FILES} ${ifs_samples_${_basedir}}
DESTINATION ${ECCODES_IFS_SAMPLES_PATH}/${_basedir}
PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ )
file( COPY ${ifs_samples_${_basedir}}
DESTINATION ${CMAKE_BINARY_DIR}/share/${PROJECT_NAME}/ifs_samples/${_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} )

View File

@ -7,9 +7,13 @@ list( APPEND ifs_samples_${_basedir}
sh_sfc.tmpl
)
install( FILES ${ECCODES_SAMPLES_FILES} ${ifs_samples_${_basedir}}
install( FILES ${ECCODES_SAMPLES_FILES} ${ifs_samples_${_basedir}}
DESTINATION ${CMAKE_INSTALL_PREFIX}/${ECCODES_IFS_SAMPLES_SUFF}/${_basedir}
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} )