Commit 56e54fbb authored by Christoph Grueninger's avatar Christoph Grueninger
Browse files

[CMake] All programs in dumux-lecture are included in CTest.

This fixes FS#113.


git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux-lecture/trunk@11946 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent d1df7dc5
# add_subdirectory("common")
# add_subdirectory("efm")
add_subdirectory("mhs")
# add_subdirectory("msm")
add_subdirectory(common)
add_subdirectory(efm)
add_subdirectory(mhs)
add_subdirectory(mm)
# headers for installation and headercheck
install(FILES
cubegridcreatorlecture.hh
viplaboutput.hh
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/lecture/common)
add_dumux_test(lens2pexercise3 lens2pexercise3 lens2pexercise3.cc
${CMAKE_CURRENT_BINARY_DIR}/lens2pexercise3
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/exercise3.input)
add_dumux_test(lens2p2cexercise3 lens2p2cexercise3 lens2p2cexercise3.cc
${CMAKE_CURRENT_BINARY_DIR}/lens2p2cexercise3
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/exercise3.input)
add_dumux_test(lens1p2cexercise3 lens1p2cexercise3 lens1p2cexercise3.cc
${CMAKE_CURRENT_BINARY_DIR}/lens1p2cexercise3
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/exercise3.input)
# headers for installation and headercheck
install(FILES
lens1p2cproblem.hh
lens1p2cspatialparams.hh
lens2p2cproblem.hh
lens2pproblem.hh
lens2pspatialparams.hh
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/lecture/efm/1p2c_2p_2p2c)
# add build targets
ADD_EXECUTABLE("lens_1p2c" lens_1p2c.cc)
TARGET_LINK_LIBRARIES("lens_1p2c" ${DumuxLinkLibraries})
add_dumux_test(lens1p2cexercise1 lens1p2cexercise1 lens1p2cexercise1.cc
${CMAKE_CURRENT_BINARY_DIR}/lens1p2cexercise1
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/exercise1.input)
ADD_EXECUTABLE("lens_2p" lens_2p.cc)
TARGET_LINK_LIBRARIES("lens_2p" ${DumuxLinkLibraries})
# add required libraries and includes to the build flags
LINK_DIRECTORIES(${DumuxLinkDirectories})
INCLUDE_DIRECTORIES(${DumuxIncludeDirectories})
add_dumux_test(lens2pexercise1 lens2pexercise1 lens2pexercise1.cc
${CMAKE_CURRENT_BINARY_DIR}/lens2pexercise1
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/exercise1.input)
# headers for installation and headercheck
install(FILES
lens1p2cproblem.hh
lens2pproblem.hh
lens2pspatialparams.hh
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/lecture/efm/1p2cvs2p)
add_dumux_test(lens2pexercise2 lens2pexercise2 lens2pexercise2.cc
${CMAKE_CURRENT_BINARY_DIR}/lens2pexercise2
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/lens2pexercise2.input)
# headers for installation and headercheck
install(FILES
lens2pproblem.hh
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/lecture/efm/2p)
# directories which are commented out do not compile at the moment
# (they also don't compile if using the old build system)!
add_subdirectory("1p2cvs2p")
#add_subdirectory("buckleyleverett")
#add_subdirectory("mcwhorter")
add_subdirectory(1p2cvs2p)
add_subdirectory(1p2c_2p_2p2c)
add_subdirectory(2p)
add_dumux_test(groundwater groundwater groundwater.cc
${CMAKE_CURRENT_BINARY_DIR}/groundwater
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/groundwater.input)
# headers for installation and headercheck
install(FILES
groundwaterproblem.hh
groundwaterspatialparams.hh
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/lecture/mhs/groundwater)
add_subdirectory(buckleyleverett)
add_subdirectory(co2plume)
add_subdirectory(columnxylene)
add_subdirectory(convectivemixing)
add_subdirectory(heatpipe)
add_subdirectory(henryproblem)
add_subdirectory(mcwhorter)
add_subdirectory(naplinfiltration)
add_subdirectory(remediationscenarios)
# add build targets
ADD_EXECUTABLE("buckleyleverett_ff" buckleyleverett_ff.cc)
TARGET_LINK_LIBRARIES("buckleyleverett_ff" ${DumuxLinkLibraries})
# add required libraries and includes to the build flags
LINK_DIRECTORIES(${DumuxLinkDirectories})
INCLUDE_DIRECTORIES(${DumuxIncludeDirectories})
add_dumux_test(buckleyleverettexercise buckleyleverettexercise buckleyleverettexercise.cc
${CMAKE_CURRENT_BINARY_DIR}/buckleyleverettexercise
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/buckleyleverettexercise.input)
# headers for installation and headercheck
install(FILES
buckleyleverettanalyticsolution.hh
buckleyleverettproblem.hh
buckleyleverettspatialparams.hh
cubegridcreatorbuckleyleverett.hh
pseudoh2o.hh
pseudooil.hh
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/lecture/mm/buckleyleverett)
add_dumux_test(co2plumeshapeexercise co2plumeshapeexercise co2plumeshapeexercise.cc
${CMAKE_CURRENT_BINARY_DIR}/co2plumeshapeexercise
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/co2plumeshapeexercise.input)
# headers for installation and headercheck
install(FILES
co2plumeshapeproblem.hh
co2plumeshapespatialparameters.hh
injectionco2tables.hh
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/lecture/mm/co2plumeshape)
add_dumux_test(columnxyleneexercise columnxyleneexercise columnxyleneexercise.cc
${CMAKE_CURRENT_BINARY_DIR}/columnxyleneexercise
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/columnxyleneexercise.input
-Grid.File ${CMAKE_CURRENT_SOURCE_DIR}/grids/column.dgf)
# headers for installation and headercheck
install(FILES
columnxyleneproblem.hh
columnxylenespatialparameters.hh
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/lecture/mm/columnxylene)
add_dumux_test(convmixexercise convmixexercise convmixexercise.cc
${CMAKE_CURRENT_BINARY_DIR}/convmixexercise
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/convmixexercise.input)
# headers for installation and headercheck
install(FILES
convmixco2tables.hh
convmixproblem.hh
convmixspatialparameters.hh
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/lecture/mm/convmix)
# build target for the heatpipe problem
add_executable("heatpipe" heatpipe.cc)
target_link_libraries("heatpipe" ${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 "heatpipe"
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E
copy_directory
"${CMAKE_CURRENT_SOURCE_DIR}/grids"
"${CMAKE_CURRENT_BINARY_DIR}/grids")
add_dumux_test(heatpipe heatpipe heatpipe.cc
${CMAKE_CURRENT_BINARY_DIR}/heatpipe
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/heatpipe.input
-Grid.File ${CMAKE_CURRENT_SOURCE_DIR}/grids/heatpipe.dgf)
# headers for installation and headercheck
install(FILES
heatpipeproblem.hh
heatpipespatialparams.hh
krpcheatpipe.hh
krpcheatpipeparams.hh
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/lecture/mm/heatpipe)
add_subdirectory(henry2p)
add_subdirectory(henry1p2c)
add_dumux_test(henry1p2c henry1p2c henry1p2c.cc
${CMAKE_CURRENT_BINARY_DIR}/henry1p2c
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/henry1p2c.input
-Grid.File ${CMAKE_CURRENT_SOURCE_DIR}/grids/henry.dgf)
# headers for installation and headercheck
install(FILES
henry1p2cproblem.hh
henry1p2cspatialparams.hh
watersaltfluidsystem.hh.hh
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/lecture/mm/henryproblem/henry1p2c)
add_dumux_test(henry2p henry2p henry2p.cc
${CMAKE_CURRENT_BINARY_DIR}/henry2p
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/henry2p.input
-Grid.File ${CMAKE_CURRENT_SOURCE_DIR}/grids/henry.dgf)
# headers for installation and headercheck
install(FILES
henry2pproblem.hh
henry2pspatialparams.hh
simplesaltwater.hh
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/lecture/mm/henryproblem/henry2p)
# add build targets
ADD_EXECUTABLE("mcwhorter_ff" mcwhorter_ff.cc)
TARGET_LINK_LIBRARIES("mcwhorter_ff" ${DumuxLinkLibraries})
# add required libraries and includes to the build flags
LINK_DIRECTORIES(${DumuxLinkDirectories})
INCLUDE_DIRECTORIES(${DumuxIncludeDirectories})
add_dumux_test(mcwhorterexercise mcwhorterexercise mcwhorterexercise.cc
${CMAKE_CURRENT_BINARY_DIR}/mcwhorterexercise
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/mcwhorterexercise.input)
# headers for installation and headercheck
install(FILES
cubegridcreatormcwhorter.hh
mcwhorteranalyticsolution.hh
mcwhorterproblem.hh
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/lecture/mm/mcwhorter)
add_dumux_test(naplinfiltrationexercise naplinfiltrationexercise naplinfiltrationexercise.cc
${CMAKE_CURRENT_BINARY_DIR}/naplinfiltrationexercise
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/naplinfiltrationexercise.input
-Grid.File ${CMAKE_CURRENT_SOURCE_DIR}/grids/naplinfiltrationexercise.dgf)
# headers for installation and headercheck
install(FILES
h2oairnaplfluidsystem.hh
naplinfiltrationproblem.hh
naplinfiltrationproblem3p.hh
naplinfiltrationspatialparams.hh
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/lecture/mm/naplinfiltration)
add_dumux_test(remediationscenariosexercise remediationscenariosexercise remediationscenariosexercise.cc
${CMAKE_CURRENT_BINARY_DIR}/remediationscenariosexercise
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/remediationscenariosexercise.input
-Grid.File ${CMAKE_CURRENT_SOURCE_DIR}/grids/kuevette.dgf)
# headers for installation and headercheck
install(FILES
remediationscenariosproblem.hh
remediationscenariosspatialparams.hh
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/lecture/mm/remediationscenarios)
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