2015-09-25 15:47:47 +00:00
|
|
|
function( install_samples samples destination_install destination_build )
|
|
|
|
set( _samples ${${samples}} )
|
2017-07-19 16:14:07 +00:00
|
|
|
|
|
|
|
if(HAVE_INSTALL_ECCODES_SAMPLES)
|
|
|
|
|
|
|
|
# To install the samples
|
|
|
|
install( FILES ${_samples}
|
|
|
|
DESTINATION ${destination_install}
|
|
|
|
PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ )
|
|
|
|
|
|
|
|
endif()
|
2015-09-25 15:47:47 +00:00
|
|
|
|
|
|
|
# To symlink the samples to the build-dir for developers
|
|
|
|
execute_process( COMMAND ${CMAKE_COMMAND} -E make_directory ${destination_build} )
|
|
|
|
foreach( _file ${_samples} )
|
|
|
|
get_filename_component(_filename ${_file} NAME)
|
2017-07-19 16:14:07 +00:00
|
|
|
execute_process( COMMAND ${CMAKE_COMMAND} -E create_symlink
|
2015-09-25 15:47:47 +00:00
|
|
|
${_file} ${destination_build}/${_filename} )
|
|
|
|
endforeach()
|
|
|
|
endfunction()
|
|
|
|
|
2013-04-03 10:45:13 +00:00
|
|
|
add_subdirectory( grib1 )
|
|
|
|
add_subdirectory( grib1_mlgrib2 )
|
|
|
|
# add_subdirectory( grib1_mlgrib2_ieee32 )
|
|
|
|
add_subdirectory( grib1_mlgrib2_ieee64 )
|
2022-04-06 19:39:46 +00:00
|
|
|
add_subdirectory( grib1_mlgrib2_ccsds )
|