Skip to content
Snippets Groups Projects
Commit bdf60712 authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

[CMake] Link libdunegrid to several tests

Needed since CMake 3.4
parent 8e765202
No related branches found
No related tags found
No related merge requests found
dune_add_test(NAME test-dgf-yasp
SOURCES test-dgf.cc
LINK_LIBRARIES dunegrid
COMPILE_DEFINITIONS GRIDDIM=3
YASPGRID
HAVE_DUNE_GRID=1
......@@ -7,6 +8,7 @@ dune_add_test(NAME test-dgf-yasp
dune_add_test(NAME test-dgf-yasp-offset
SOURCES test-dgf.cc
LINK_LIBRARIES dunegrid
COMPILE_DEFINITIONS GRIDDIM=3
YASPGRID
HAVE_DUNE_GRID=1
......@@ -16,6 +18,7 @@ dune_add_test(NAME test-dgf-yasp-offset
dune_add_test(NAME test-dgf-oned
SOURCES test-dgf.cc
LINK_LIBRARIES dunegrid
COMPILE_DEFINITIONS GRIDDIM=1
ONEDGRID
HAVE_DUNE_GRID=1
......
......@@ -34,6 +34,7 @@ endif()
# the gmsh tests
dune_add_test(NAME gmshtest-onedgrid
SOURCES gmshtest.cc
LINK_LIBRARIES dunegrid
COMPILE_DEFINITIONS GMSH_ONEDGRID
DUNE_GRID_EXAMPLE_GRIDS_PATH=\"${PROJECT_SOURCE_DIR}/doc/grids/\")
......
dune_add_test(SOURCES test-geogrid.cc
LINK_LIBRARIES dunegrid
COMPILE_DEFINITIONS COORDFUNCTION=IdenticalCoordFunction<double,2>
CACHECOORDFUNCTION=0
DUNE_GRID_EXAMPLE_GRIDS_PATH=\"${PROJECT_SOURCE_DIR}/doc/grids/\"
......@@ -8,7 +9,8 @@ dune_add_test(SOURCES test-geogrid.cc
dune_add_test(SOURCES test-identitygrid.cc)
dune_add_test(SOURCES test-oned.cc)
dune_add_test(SOURCES test-oned.cc
LINK_LIBRARIES dunegrid)
dune_add_test(SOURCES test-mcmg-geogrid.cc)
......
......@@ -2,8 +2,11 @@ dune_add_test(SOURCES globalindexsettest.cc)
dune_add_test(SOURCES persistentcontainertest.cc)
dune_add_test(SOURCES structuredgridfactorytest.cc)
dune_add_test(SOURCES structuredgridfactorytest.cc
LINK_LIBRARIES dunegrid)
dune_add_test(SOURCES tensorgridfactorytest.cc)
dune_add_test(SOURCES tensorgridfactorytest.cc
LINK_LIBRARIES dunegrid)
dune_add_test(SOURCES vertexordertest.cc)
dune_add_test(SOURCES vertexordertest.cc
LINK_LIBRARIES dunegrid)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment