CMakeLists.txt 1.64 KB
Newer Older
Praetorius, Simon's avatar
Praetorius, Simon committed
1
2
set(GRID_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../doc/")

Praetorius, Simon's avatar
Praetorius, Simon committed
3
4
dune_add_test(SOURCES vtkreader.cc
  LINK_LIBRARIES dunevtk)
Praetorius, Simon's avatar
Praetorius, Simon committed
5

Praetorius, Simon's avatar
Praetorius, Simon committed
6
7
dune_add_test(SOURCES legacyvtkwriter.cc
  LINK_LIBRARIES dunevtk)
8

Praetorius, Simon's avatar
Praetorius, Simon committed
9

Praetorius, Simon's avatar
Praetorius, Simon committed
10
11
12
dune_add_test(SOURCES vtkwriter.cc
  LINK_LIBRARIES dunevtk
  CMAKE_GUARD dune-functions_FOUND)
13

Praetorius, Simon's avatar
Praetorius, Simon committed
14
15
16
dune_add_test(SOURCES benchmark.cc
  LINK_LIBRARIES dunevtk
  CMAKE_GUARD dune-functions_FOUND)
17

Praetorius, Simon's avatar
Praetorius, Simon committed
18
19
dune_add_test(SOURCES datacollector.cc
  LINK_LIBRARIES dunevtk
20
21
22
23
  CMAKE_GUARD dune-functions_FOUND)

dune_add_test(SOURCES datareader.cc
  LINK_LIBRARIES dunevtk
Praetorius, Simon's avatar
Praetorius, Simon committed
24
  CMAKE_GUARD dune-functions_FOUND)
25

26
27
28
29
dune_add_test(SOURCES dunegridvtkreader.cc
  LINK_LIBRARIES dunevtk
  CMAKE_GUARD "dune-uggrid_FOUND OR dune-alugrid_FOUND")

Praetorius, Simon's avatar
Praetorius, Simon committed
30
31
32
33
34
35
36
37
dune_add_test(SOURCES lagrangepoints.cc
  LINK_LIBRARIES dunevtk)

dune_add_test(SOURCES lagrangereader.cc
  COMPILE_DEFINITIONS "GRID_PATH=\"${GRID_PATH}\""
  LINK_LIBRARIES dunevtk
  CMAKE_GUARD dune-foamgrid_FOUND)

Praetorius, Simon's avatar
Praetorius, Simon committed
38
39
40
dune_add_test(SOURCES structuredgridwriter.cc
  LINK_LIBRARIES dunevtk
  CMAKE_GUARD dune-functions_FOUND)
41

Praetorius, Simon's avatar
Praetorius, Simon committed
42
43
44
dune_add_test(SOURCES geometrygrid.cc
  LINK_LIBRARIES dunevtk
  CMAKE_GUARD dune-functions_FOUND)
45

Praetorius, Simon's avatar
Praetorius, Simon committed
46
47
48
dune_add_test(SOURCES timeserieswriter.cc
  LINK_LIBRARIES dunevtk
  CMAKE_GUARD dune-functions_FOUND)
49

Praetorius, Simon's avatar
Praetorius, Simon committed
50
51
52
53
54
55
56
dune_add_test(SOURCES pvdwriter.cc
  LINK_LIBRARIES dunevtk
  CMAKE_GUARD dune-functions_FOUND)

dune_add_test(SOURCES vectorwriter.cc
  LINK_LIBRARIES dunevtk
  CMAKE_GUARD dune-functions_FOUND)
57

58
if (dune-polygongrid_FOUND)
Praetorius, Simon's avatar
Praetorius, Simon committed
59
60
61
  # CMAKE_GUARD can not be used, since a dummy target is created and linked against dunepolygongrid
  dune_add_test(SOURCES polygongrid.cc
    LINK_LIBRARIES dunevtk dunepolygongrid)
62
63
endif ()

64
add_subdirectory(test)