2013-04-03 10:45:13 +00:00
|
|
|
file( GLOB samples_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.tmpl" )
|
|
|
|
|
|
|
|
install( FILES ${samples_files}
|
|
|
|
DESTINATION share/${PROJECT_NAME}/samples
|
|
|
|
PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ )
|
|
|
|
|
|
|
|
foreach( tmpl ${samples_files} )
|
2015-02-18 18:11:38 +00:00
|
|
|
list( APPEND ECCODES_SAMPLES_FILES ${CMAKE_CURRENT_SOURCE_DIR}/${tmpl} )
|
2013-04-03 10:45:13 +00:00
|
|
|
endforeach()
|
|
|
|
|
2015-02-18 18:11:38 +00:00
|
|
|
set( ECCODES_SAMPLES_DIR ${CMAKE_CURRENT_SOURCE_DIR} PARENT_SCOPE )
|
|
|
|
set( ECCODES_SAMPLES_FILES ${ECCODES_SAMPLES_FILES} PARENT_SCOPE )
|
2014-12-01 09:54:46 +00:00
|
|
|
|
|
|
|
# copy the samples to the build directory
|
|
|
|
|
2015-06-09 13:50:51 +00:00
|
|
|
file( COPY ${samples_files}
|
|
|
|
DESTINATION ${CMAKE_BINARY_DIR}/share/${PROJECT_NAME}/samples )
|