CMakeLists.txt 797 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

set(projects2d "ellipt" "heat" "vecellipt" "stokes0" "stokes1" "stokes3" "navier_stokes")

foreach(project ${projects2d})
    add_executable(${project}.2d ${project}.cc)
    add_dune_alberta_flags(GRIDDIM 2 WORLDDIM 2 ${project}.2d)
    target_link_dune_default_libraries(${project}.2d)
    target_link_libraries(${project}.2d "amdis")
    target_compile_definitions(${project}.2d PRIVATE AMDIS_DIM=2 AMDIS_DOW=2)
endforeach()

set(projects3d "ellipt" "heat")

foreach(project ${projects3d})
    add_executable(${project}.3d ${project}.cc)
    add_dune_alberta_flags(GRIDDIM 3 WORLDDIM 3 ${project}.3d)
    target_link_dune_default_libraries(${project}.3d)
    target_link_libraries(${project}.3d "amdis")
    target_compile_definitions(${project}.3d PRIVATE AMDIS_DIM=3 AMDIS_DOW=3)
endforeach()