From 95e5903c5bc9d57a71c0c2c02fe10ab747227c44 Mon Sep 17 00:00:00 2001
From: Ned Coltman <edward.coltman@iws.uni-stuttgart.de>
Date: Thu, 30 Mar 2023 13:04:10 +0200
Subject: [PATCH] [exercises][ff-pm][cmake] Add labels for compilation

---
 exercises/exercise-coupling-ff-pm/interface/CMakeLists.txt    | 3 ++-
 exercises/exercise-coupling-ff-pm/models/CMakeLists.txt       | 3 ++-
 exercises/exercise-coupling-ff-pm/turbulence/CMakeLists.txt   | 3 ++-
 .../solution/exercise-coupling-ff-pm/interface/CMakeLists.txt | 4 ++++
 .../solution/exercise-coupling-ff-pm/models/CMakeLists.txt    | 4 ++++
 .../exercise-coupling-ff-pm/turbulence/CMakeLists.txt         | 3 +++
 6 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/exercises/exercise-coupling-ff-pm/interface/CMakeLists.txt b/exercises/exercise-coupling-ff-pm/interface/CMakeLists.txt
index be512539..748d97ec 100644
--- a/exercises/exercise-coupling-ff-pm/interface/CMakeLists.txt
+++ b/exercises/exercise-coupling-ff-pm/interface/CMakeLists.txt
@@ -1,6 +1,7 @@
 # executables for ex_interface_coupling_ff-pm
 dumux_add_test(NAME exercise_interface_coupling_ff-pm
-               SOURCES main.cc)
+               SOURCES main.cc
+               LABELS ffpm)
 
 # add a symlink for each input file
 add_input_file_links()
diff --git a/exercises/exercise-coupling-ff-pm/models/CMakeLists.txt b/exercises/exercise-coupling-ff-pm/models/CMakeLists.txt
index 8edaf9f1..8ad3cc49 100644
--- a/exercises/exercise-coupling-ff-pm/models/CMakeLists.txt
+++ b/exercises/exercise-coupling-ff-pm/models/CMakeLists.txt
@@ -1,6 +1,7 @@
 # executables for ex_interface_coupling_ff-pm
 dumux_add_test(NAME exercise_models_coupling_ff-pm
-               SOURCES main.cc)
+               SOURCES main.cc
+               LABELS ffpm)
 
 # add a symlink for each input file
 add_input_file_links()
diff --git a/exercises/exercise-coupling-ff-pm/turbulence/CMakeLists.txt b/exercises/exercise-coupling-ff-pm/turbulence/CMakeLists.txt
index b36e7939..d669f666 100644
--- a/exercises/exercise-coupling-ff-pm/turbulence/CMakeLists.txt
+++ b/exercises/exercise-coupling-ff-pm/turbulence/CMakeLists.txt
@@ -1,6 +1,7 @@
 # executables for ex_interface_coupling_ff-pm
 dumux_add_test(NAME exercise_turbulence_coupling_ff-pm
-               SOURCES main.cc)
+               SOURCES main.cc
+               LABELS ffpm)
 
 # add a symlink for each input file
 add_input_file_links()
diff --git a/exercises/solution/exercise-coupling-ff-pm/interface/CMakeLists.txt b/exercises/solution/exercise-coupling-ff-pm/interface/CMakeLists.txt
index 1a5c23de..2fd193dc 100644
--- a/exercises/solution/exercise-coupling-ff-pm/interface/CMakeLists.txt
+++ b/exercises/solution/exercise-coupling-ff-pm/interface/CMakeLists.txt
@@ -1,17 +1,21 @@
 dumux_add_test(NAME exercise_interface_coupling_ff-pm_original
                SOURCES main.cc
+               LABELS ffpm
                COMPILE_DEFINITIONS EXNUMBER=0)
 
 dumux_add_test(NAME exercise_interface_coupling_ff-pm_a_solution
                SOURCES main.cc
+               LABELS ffpm
                COMPILE_DEFINITIONS EXNUMBER=1)
 
 dumux_add_test(NAME exercise_interface_coupling_ff-pm_b_solution
                SOURCES main.cc
+               LABELS ffpm
                COMPILE_DEFINITIONS EXNUMBER=2)
 
 dumux_add_test(NAME exercise_interface_coupling_ff-pm_c_solution
                SOURCES main.cc
+               LABELS ffpm
                COMPILE_DEFINITIONS EXNUMBER=3)
 
 # add a symlink for each input file
diff --git a/exercises/solution/exercise-coupling-ff-pm/models/CMakeLists.txt b/exercises/solution/exercise-coupling-ff-pm/models/CMakeLists.txt
index 7b21c780..04d66480 100644
--- a/exercises/solution/exercise-coupling-ff-pm/models/CMakeLists.txt
+++ b/exercises/solution/exercise-coupling-ff-pm/models/CMakeLists.txt
@@ -1,23 +1,27 @@
 dumux_add_test(NAME exercise_models_coupling_ff-pm_original
                SOURCES main.cc
+               LABELS ffpm
                COMPILE_DEFINITIONS EXNUMBER=0
                COMMAND ${CMAKE_CURRENT_BINARY_DIR}/exercise_models_coupling_ff-pm_original
                CMD_ARGS -Problem.PlotStorage 0 -Problem.PlotFluxes 0)
 
 dumux_add_test(NAME exercise_models_coupling_ff-pm_a_solution
                SOURCES main.cc
+               LABELS ffpm
                COMPILE_DEFINITIONS EXNUMBER=1
                COMMAND ${CMAKE_CURRENT_BINARY_DIR}/exercise_models_coupling_ff-pm_a_solution
                CMD_ARGS -Problem.PlotStorage 0 -Problem.PlotFluxes 0)
 
 dumux_add_test(NAME exercise_models_coupling_ff-pm_b_solution
                SOURCES main.cc
+               LABELS ffpm
                COMPILE_DEFINITIONS EXNUMBER=2
                COMMAND ${CMAKE_CURRENT_BINARY_DIR}/exercise_models_coupling_ff-pm_b_solution
                CMD_ARGS -Problem.PlotStorage 0 -Problem.PlotFluxes 0)
 
 dumux_add_test(NAME exercise_models_coupling_ff-pm_c_solution
                SOURCES main.cc
+               LABELS ffpm
                COMPILE_DEFINITIONS EXNUMBER=3
                COMMAND ${CMAKE_CURRENT_BINARY_DIR}/exercise_models_coupling_ff-pm_c_solution
                CMD_ARGS -Problem.PlotStorage 0 -Problem.PlotFluxes 0)
diff --git a/exercises/solution/exercise-coupling-ff-pm/turbulence/CMakeLists.txt b/exercises/solution/exercise-coupling-ff-pm/turbulence/CMakeLists.txt
index 716c9a8a..2b9a7257 100644
--- a/exercises/solution/exercise-coupling-ff-pm/turbulence/CMakeLists.txt
+++ b/exercises/solution/exercise-coupling-ff-pm/turbulence/CMakeLists.txt
@@ -1,13 +1,16 @@
 dumux_add_test(NAME exercise_turbulence_coupling_ff-pm_original
                SOURCES main.cc
+               LABELS ffpm
                COMPILE_DEFINITIONS EXNUMBER=0)
 
 dumux_add_test(NAME exercise_turbulence_coupling_ff-pm_a_solution
                SOURCES main.cc
+               LABELS ffpm
                COMPILE_DEFINITIONS EXNUMBER=1)
 
 dumux_add_test(NAME exercise_turbulence_coupling_ff-pm_b_solution
                SOURCES main.cc
+               LABELS ffpm
                COMPILE_DEFINITIONS EXNUMBER=2)
 
 # add a symlink for each input file
-- 
GitLab