eccodes/ifs_samples/CMakeLists.txt

27 lines
893 B
CMake
Raw Normal View History

function( install_samples samples destination_install destination_build )
set( _samples ${${samples}} )
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()
# 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)
execute_process( COMMAND ${CMAKE_COMMAND} -E create_symlink
${_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 )
add_subdirectory( grib1_mlgrib2_ccsds )