Skip to content
Snippets Groups Projects
Commit d001d53a authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

[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
parent f65a33ae
No related branches found
No related tags found
No related merge requests found
...@@ -14,3 +14,34 @@ add_custom_command(TARGET "test_mpnc" ...@@ -14,3 +14,34 @@ add_custom_command(TARGET "test_mpnc"
"${CMAKE_CURRENT_SOURCE_DIR}/grids" "${CMAKE_CURRENT_SOURCE_DIR}/grids"
"${CMAKE_CURRENT_BINARY_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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment