C++ compilation

This commit is contained in:
Shahram Najm 2023-01-06 12:27:07 +00:00
parent f4cd4b274d
commit ff34d78837
1 changed files with 8 additions and 0 deletions

View File

@ -49,6 +49,14 @@ list(APPEND test_c_bins
grib_lam_bf
grib_lam_gp)
if( HAVE_EXPERIMENTAL_BUILD_WITH_CXX )
foreach( _bin ${test_c_bins} )
SET( _src ${_bin}.c )
set_source_files_properties( ${_src} PROPERTIES LANGUAGE CXX )
endforeach()
endif()
foreach( tool ${test_c_bins} )
# here we use the fact that each tool has only one C file that matches its name
ecbuild_add_executable( TARGET ${tool}