Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-geometry
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Core Modules
dune-geometry
Commits
35f84071
Commit
35f84071
authored
9 years ago
by
Dominic Kempf
Browse files
Options
Downloads
Patches
Plain Diff
Introduce dune_add_test in dune-geometry
parent
d7eb625e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/geometry/genericgeometry/test/CMakeLists.txt
+3
-22
3 additions, 22 deletions
dune/geometry/genericgeometry/test/CMakeLists.txt
dune/geometry/test/CMakeLists.txt
+16
-23
16 additions, 23 deletions
dune/geometry/test/CMakeLists.txt
with
19 additions
and
45 deletions
dune/geometry/genericgeometry/test/CMakeLists.txt
+
3
−
22
View file @
35f84071
set
(
TESTS
testmatrix
testsubtopologies
)
dune_add_test
(
SOURCES testsubtopologies.cc
COMPILE_DEFINITIONS GEOMETRYTYPE=cube DIMENSION=3
)
set
(
GEOMETRYTYPE
"cube"
)
set
(
DIMENSION
"3"
)
add_executable
(
testsubtopologies testsubtopologies.cc
)
add_executable
(
testmatrix testmatrix.cc
)
set_property
(
TARGET testsubtopologies APPEND_STRING PROPERTY COMPILE_FLAGS
" -DGEOMETRYTYPE=
${
GEOMETRYTYPE
}
-DDIMENSION=
${
DIMENSION
}
"
)
add_dune_gmp_flags
(
testmatrix
)
# We do not want want to build the tests during make all,
# but just build them on demand
add_directory_test_target
(
_test_target
)
add_dependencies
(
${
_test_target
}
${
TESTS
}
)
foreach
(
_test
${
TESTS
}
)
add_test
(
${
_test
}
${
_test
}
)
endforeach
(
_test
${
TESTS
}
)
dune_add_test
(
SOURCES testmatrix.cc
)
This diff is collapsed.
Click to expand it.
dune/geometry/test/CMakeLists.txt
+
16
−
23
View file @
35f84071
set
(
TESTS
test-affinegeometry
test-axisalignedcubegeometry
test-geometrytype
test-multilineargeometry
test-quadrature
test-referenceelements
test-refinement
)
dune_add_test
(
SOURCES test-affinegeometry.cc
LINK_LIBRARIES dunegeometry
)
add_executable
(
test-affinegeometry test-affinegeometry.cc
)
add_executable
(
test-axisalignedcubegeometry test-axisalignedcubegeometry.cc
)
add_executable
(
test-geometrytype test-geometrytype.cc
)
add_executable
(
test-referenceelements test-referenceelements.cc
)
add_executable
(
test-quadrature test-quadrature.cc
)
add_executable
(
test-multilineargeometry test-multilineargeometry.cc
)
add_executable
(
test-refinement test-refinement.cc
)
dune_add_test
(
SOURCES test-axisalignedcubegeometry.cc
LINK_LIBRARIES dunegeometry
)
# We do not want want to build the tests during make all,
# but just build them on demand
add_directory_test_target
(
_test_target
)
add_dependencies
(
${
_test_target
}
${
TESTS
}
)
dune_add_test
(
SOURCES test-geometrytype.cc
)
foreach
(
_test
${
TESTS
}
)
target_link_libraries
(
${
_test
}
dunegeometry
${
DUNE_LIBS
}
)
add_test
(
${
_test
}
${
_test
}
)
endforeach
(
_test
${
TESTS
}
)
dune_add_test
(
SOURCES test-referenceelements.cc
LINK_LIBRARIES dunegeometry
)
dune_add_test
(
SOURCES test-quadrature.cc
LINK_LIBRARIES dunegeometry
)
dune_add_test
(
SOURCES test-multilineargeometry.cc
LINK_LIBRARIES dunegeometry
)
dune_add_test
(
SOURCES test-refinement.cc
LINK_LIBRARIES dunegeometry
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment