CMakeLists.txt 1.76 KB
Newer Older
1

2 3 4
add_executable("localrefinement" localrefinement.cc)
target_link_dune_default_libraries("localrefinement")

5 6
add_executable("uggrid" uggrid.cc)
target_link_dune_default_libraries("uggrid")
7

8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
add_executable("profiling" profiling.cc)
target_link_dune_default_libraries("profiling")

add_executable("benchmark" benchmark.cc)
target_link_dune_default_libraries("benchmark")

add_executable("testiterator" testiterator.cc)
target_link_dune_default_libraries("testiterator")

if (HAVE_ALBERTA)
  add_dune_alberta_flags(GRIDDIM 3 WORLDDIM 3 "testiterator")
  add_dune_alberta_flags(GRIDDIM 2 WORLDDIM 2 "benchmark")
endif (HAVE_ALBERTA)


23 24 25 26 27 28 29
if (DUNE_HAVE_CXX_VARIANT)
  add_executable("multigridview" multigridview.cc)
  target_link_dune_default_libraries("multigridview")

  add_executable("hierarchiciterator" hierarchiciterator.cc)
  target_link_dune_default_libraries("hierarchiciterator")
endif (DUNE_HAVE_CXX_VARIANT)
30

31

32 33 34 35
if (dune-functions_FOUND AND dune-alugrid_FOUND AND HAVE_ALBERTA)
  add_executable("interpolate" interpolate.cc)
  target_link_dune_default_libraries("interpolate")
  add_dune_alberta_flags(GRIDDIM 2 WORLDDIM 2 "interpolate")
36

37 38 39
  add_executable("taylorhood" taylorhood.cc)
  target_link_dune_default_libraries("taylorhood")
  add_dune_alberta_flags(GRIDDIM 2 WORLDDIM 2 "taylorhood")
Praetorius, Simon's avatar
Praetorius, Simon committed
40

41 42
  find_package(MTL QUIET PATHS /opt/development/mtl4)
  if (MTL_FOUND)
43
    foreach(target "phasefield" "phasefield2" "phasefield3" "phasefield4")
44 45 46 47 48 49
      add_executable(${target} ${target}.cc)
      target_link_dune_default_libraries(${target})
      add_dune_alberta_flags(GRIDDIM 2 WORLDDIM 2 ${target})
      target_include_directories(${target} PRIVATE ${MTL_INCLUDE_DIRS})
      target_compile_definitions(${target} PRIVATE ${MTL_COMPILE_DEFINITIONS})
    endforeach()
50
  endif (MTL_FOUND)
51
endif ()