From d001d53ab2ba8946a529358e94663dbaaded8ae3 Mon Sep 17 00:00:00 2001
From: Christoph Grueninger <christoph.grueninger@iws.uni-stuttgart.de>
Date: Thu, 23 Aug 2012 16:05:01 +0000
Subject: [PATCH] [CMake] Add targets for forchheimer{1|2]p.

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@8987 2fb0f335-1f38-0410-981e-8018bf24f1b0
---
 test/boxmodels/mpnc/CMakeLists.txt | 31 ++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/test/boxmodels/mpnc/CMakeLists.txt b/test/boxmodels/mpnc/CMakeLists.txt
index d462fbe485..43eb19f4dd 100644
--- a/test/boxmodels/mpnc/CMakeLists.txt
+++ b/test/boxmodels/mpnc/CMakeLists.txt
@@ -14,3 +14,34 @@ add_custom_command(TARGET "test_mpnc"
                            "${CMAKE_CURRENT_SOURCE_DIR}/grids"
                            "${CMAKE_CURRENT_BINARY_DIR}/grids")
 
+# build target for the one-phase forchheimer test problem
+add_executable("test_forchheimer1p" test_forchheimer1p.cc)
+target_link_libraries("test_forchheimer1p" ${DumuxLinkLibraries})
+
+# add required libraries and includes to the build flags 
+link_directories(${DumuxLinkDirectories})
+include_directories(${DumuxIncludeDirectories})
+
+# make sure the grids are present in the build directory
+add_custom_command(TARGET "test_forchheimer1p"
+                   POST_BUILD
+                   COMMAND ${CMAKE_COMMAND} -E
+                        copy_directory 
+                           "${CMAKE_CURRENT_SOURCE_DIR}/grids"
+                           "${CMAKE_CURRENT_BINARY_DIR}/grids")
+
+# build target for the two-phase forchheimer test problem
+add_executable("test_forchheimer2p" test_forchheimer2p.cc)
+target_link_libraries("test_forchheimer2p" ${DumuxLinkLibraries})
+
+# add required libraries and includes to the build flags 
+link_directories(${DumuxLinkDirectories})
+include_directories(${DumuxIncludeDirectories})
+
+# make sure the grids are present in the build directory
+add_custom_command(TARGET "test_forchheimer2p"
+                   POST_BUILD
+                   COMMAND ${CMAKE_COMMAND} -E
+                        copy_directory 
+                           "${CMAKE_CURRENT_SOURCE_DIR}/grids"
+                           "${CMAKE_CURRENT_BINARY_DIR}/grids")
\ No newline at end of file
-- 
GitLab