Commit 867c246b authored by Thomas Fetzer's avatar Thomas Fetzer
Browse files

[CMake]

added cmake macro which, when called, links all input files of a folder

reviewed by martinb


git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@15155 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent d3de6781
# Creates symbolic links to all input files in the source directory
macro(add_input_file_links)
FILE(GLOB input_files *.input)
foreach(VAR ${input_files})
get_filename_component(file_name ${VAR} NAME)
dune_symlink_to_source_files(FILES ${file_name})
endforeach()
endmacro()
......@@ -7,6 +7,7 @@ if(("${DUNE_COMMON_VERSION_MAJOR}" STREQUAL "2")
include(CopyOfDuneSymlinkOrCopy)
endif()
# additional macros
include(AddInputFileLinks)
include(DumuxTestMacros)
find_package(Gnuplot)
......
add_input_file_links()
add_dumux_test(test_general_box test_general_box test_generalproblem2p.cc
python ${CMAKE_SOURCE_DIR}/bin/runtest.py
--script fuzzy
......
add_input_file_links()
add_dumux_test(test_dec1p test_dec1p test_1p.cc
python ${CMAKE_SOURCE_DIR}/bin/runtest.py
--script fuzzy
......
add_input_file_links()
add_dumux_test(test_impes test_impes test_impes.cc
python${CMAKE_SOURCE_DIR}/bin/runtest.py
--script fuzzy
......
add_input_file_links()
add_dumux_test(test_adaptive2p2c2d test_adaptive2p2c2d test_adaptive2p2c2d.cc
python ${CMAKE_SOURCE_DIR}/bin/runtest.py
--script fuzzy
......
add_input_file_links()
add_dumux_test(test_navierstokes test_navierstokes test_navierstokes.cc
python ${CMAKE_SOURCE_DIR}/bin/runtest.py
--script fuzzy
......
add_input_file_links()
add_dumux_test(test_stokes test_stokes test_stokes.cc
python ${CMAKE_SOURCE_DIR}/bin/runtest.py
--script fuzzy
......
add_input_file_links()
add_dumux_test(test_stokes2c test_stokes2c test_stokes2c.cc
python ${CMAKE_SOURCE_DIR}/bin/runtest.py
--script fuzzy
......
add_input_file_links()
add_dumux_test(test_stokes2cni test_stokes2cni test_stokes2cni.cc
python ${CMAKE_SOURCE_DIR}/bin/runtest.py
--script fuzzy
......
add_input_file_links()
add_dumux_test(test_zeroeq test_zeroeq test_zeroeq.cc
python ${CMAKE_SOURCE_DIR}/bin/runtest.py
--script fuzzy
......
add_input_file_links()
add_dumux_test(test_zeroeq2c test_zeroeq2c test_zeroeq2c.cc
python ${CMAKE_SOURCE_DIR}/bin/runtest.py
--script fuzzy
......
add_input_file_links()
add_dumux_test(test_zeroeq2cni test_zeroeq2cni test_zeroeq2cni.cc
python ${CMAKE_SOURCE_DIR}/bin/runtest.py
--script fuzzy
......
add_input_file_links()
add_dumux_test(test_el1p2c test_el1p2c test_el1p2c.cc
python ${CMAKE_SOURCE_DIR}/bin/runtest.py
--script fuzzy
......
add_input_file_links()
add_dumux_test(test_el2p test_el2p test_el2p.cc
python ${CMAKE_SOURCE_DIR}/bin/runtest.py
--script fuzzy
......
add_input_file_links()
add_dumux_test(test_elastic test_elastic test_elastic.cc
python ${CMAKE_SOURCE_DIR}/bin/runtest.py
--script fuzzy
......
add_input_file_links()
# isothermal tests
add_dumux_test(test_box1p test_box1p test_box1p.cc
python ${CMAKE_SOURCE_DIR}/bin/runtest.py
......
add_input_file_links()
# isothermal tests
add_dumux_test(test_box1p2c test_box1p2c test_box1p2c.cc
python ${CMAKE_SOURCE_DIR}/bin/runtest.py
......
add_input_file_links()
# isothermal tests
add_dumux_test(test_box2p test_box2p test_box2p.cc
python ${CMAKE_SOURCE_DIR}/bin/runtest.py
......
add_input_file_links()
# isothermal tests
add_dumux_test(test_box2p2c test_box2p2c test_box2p2c.cc
python ${CMAKE_SOURCE_DIR}/bin/runtest.py
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment