CMakeLists.txt 989 Bytes
Newer Older
1
add_custom_target(examples)
2

3 4 5 6 7 8 9 10 11 12 13 14
set(projects2d
  "ellipt"
  "heat"
  "vecellipt"
  "stokes0"
  "stokes1"
  "stokes3"
  "navier_stokes"
  "convection_diffusion"
  "boundary"
  "periodic"
  "neumann")
15 16 17 18 19

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)
20
    target_link_libraries(${project}.2d amdis)
21
    target_compile_definitions(${project}.2d PRIVATE AMDIS_DIM=2 AMDIS_DOW=2)
22
    add_dependencies(examples ${project}.2d)
23 24 25 26 27 28 29 30
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)
31
    target_link_libraries(${project}.3d amdis)
32
    target_compile_definitions(${project}.3d PRIVATE AMDIS_DIM=3 AMDIS_DOW=3)
33
    add_dependencies(examples ${project}.3d)
34
endforeach()