diff --git a/utils/CMakeLists.txt b/utils/CMakeLists.txt index fa229981b..4fc9a64a5 100644 --- a/utils/CMakeLists.txt +++ b/utils/CMakeLists.txt @@ -5,14 +5,4 @@ find_package(oops REQUIRED) find_package(atlas REQUIRED) find_package(soca REQUIRED) -ecbuild_add_executable( TARGET gdas_socaincr2mom6.x - SOURCES gdas_socaincr2mom6.cc ) - -target_compile_features( gdas_socaincr2mom6.x PUBLIC cxx_std_17) -target_link_libraries( gdas_socaincr2mom6.x PUBLIC NetCDF::NetCDF_CXX oops atlas soca) - -ecbuild_add_executable( TARGET gdas_socahybridweights.x - SOURCES gdas_socahybridweights.cc ) - -target_compile_features( gdas_socahybridweights.x PUBLIC cxx_std_17) -target_link_libraries( gdas_socahybridweights.x PUBLIC NetCDF::NetCDF_CXX oops atlas soca) +add_subdirectory(soca) diff --git a/utils/soca/CMakeLists.txt b/utils/soca/CMakeLists.txt new file mode 100644 index 000000000..4069f52a3 --- /dev/null +++ b/utils/soca/CMakeLists.txt @@ -0,0 +1,11 @@ +ecbuild_add_executable( TARGET gdas_socaincr2mom6.x + SOURCES gdas_socaincr2mom6.cc ) + +target_compile_features( gdas_socaincr2mom6.x PUBLIC cxx_std_17) +target_link_libraries( gdas_socaincr2mom6.x PUBLIC NetCDF::NetCDF_CXX oops atlas soca) + +ecbuild_add_executable( TARGET gdas_socahybridweights.x + SOURCES gdas_socahybridweights.cc ) + +target_compile_features( gdas_socahybridweights.x PUBLIC cxx_std_17) +target_link_libraries( gdas_socahybridweights.x PUBLIC NetCDF::NetCDF_CXX oops atlas soca) diff --git a/utils/gdas_socahybridweights.cc b/utils/soca/gdas_socahybridweights.cc similarity index 100% rename from utils/gdas_socahybridweights.cc rename to utils/soca/gdas_socahybridweights.cc diff --git a/utils/gdas_socahybridweights.h b/utils/soca/gdas_socahybridweights.h similarity index 100% rename from utils/gdas_socahybridweights.h rename to utils/soca/gdas_socahybridweights.h diff --git a/utils/gdas_socaincr2mom6.cc b/utils/soca/gdas_socaincr2mom6.cc similarity index 100% rename from utils/gdas_socaincr2mom6.cc rename to utils/soca/gdas_socaincr2mom6.cc diff --git a/utils/gdas_socaincr2mom6.h b/utils/soca/gdas_socaincr2mom6.h similarity index 100% rename from utils/gdas_socaincr2mom6.h rename to utils/soca/gdas_socaincr2mom6.h