mirror of https://github.com/mosra/magnum.git
Browse Source
* For libraries that are part of the same project using directly target
name instead of ${*_LIBRARY} variable.
* Prefixed test target names with namespace, so tests for the same
class in different namespaces won't conflict.
* Removed unneeded linking to ${CORRADE_UTILITY_LIBRARY} in some
places.
vectorfields
5 changed files with 24 additions and 32 deletions
@ -1,21 +1,13 @@ |
|||||||
corrade_add_test(TypeTraitsTest TypeTraitsTest.h TypeTraitsTest.cpp) |
corrade_add_test(MathTypeTraitsTest TypeTraitsTest.h TypeTraitsTest.cpp) |
||||||
|
|
||||||
corrade_add_test(VectorTest VectorTest.h VectorTest.cpp) |
corrade_add_test(MathVectorTest VectorTest.h VectorTest.cpp ${CORRADE_UTILITY_LIBRARY}) |
||||||
target_link_libraries(VectorTest ${CORRADE_UTILITY_LIBRARY}) |
corrade_add_test(MathVector2Test Vector2Test.h Vector2Test.cpp ${CORRADE_UTILITY_LIBRARY}) |
||||||
corrade_add_test(Vector2Test Vector2Test.h Vector2Test.cpp) |
corrade_add_test(MathVector3Test Vector3Test.h Vector3Test.cpp ${CORRADE_UTILITY_LIBRARY}) |
||||||
target_link_libraries(Vector2Test ${CORRADE_UTILITY_LIBRARY}) |
corrade_add_test(MathVector4Test Vector4Test.h Vector4Test.cpp ${CORRADE_UTILITY_LIBRARY}) |
||||||
corrade_add_test(Vector3Test Vector3Test.h Vector3Test.cpp) |
|
||||||
target_link_libraries(Vector3Test ${CORRADE_UTILITY_LIBRARY}) |
|
||||||
corrade_add_test(Vector4Test Vector4Test.h Vector4Test.cpp) |
|
||||||
target_link_libraries(Vector4Test ${CORRADE_UTILITY_LIBRARY}) |
|
||||||
|
|
||||||
corrade_add_test(MatrixTest MatrixTest.h MatrixTest.cpp) |
corrade_add_test(MathMatrixTest MatrixTest.h MatrixTest.cpp ${CORRADE_UTILITY_LIBRARY}) |
||||||
target_link_libraries(MatrixTest ${CORRADE_UTILITY_LIBRARY}) |
corrade_add_test(MathMatrix3Test Matrix3Test.h Matrix3Test.cpp ${CORRADE_UTILITY_LIBRARY}) |
||||||
corrade_add_test(Matrix3Test Matrix3Test.h Matrix3Test.cpp) |
corrade_add_test(MathMatrix4Test Matrix4Test.h Matrix4Test.cpp ${CORRADE_UTILITY_LIBRARY}) |
||||||
target_link_libraries(Matrix3Test ${CORRADE_UTILITY_LIBRARY}) |
|
||||||
corrade_add_test(Matrix4Test Matrix4Test.h Matrix4Test.cpp) |
|
||||||
target_link_libraries(Matrix4Test ${CORRADE_UTILITY_LIBRARY}) |
|
||||||
|
|
||||||
corrade_add_test(MathTest MathTest.h MathTest.cpp) |
corrade_add_test(MathTest MathTest.h MathTest.cpp MagnumMath) |
||||||
target_link_libraries(MathTest MagnumMath) |
corrade_add_test(MathGeometryUtilsTest GeometryUtilsTest.h GeometryUtilsTest.cpp) |
||||||
corrade_add_test(GeometryUtilsTest GeometryUtilsTest.h GeometryUtilsTest.cpp) |
|
||||||
|
|||||||
@ -1,12 +1,12 @@ |
|||||||
corrade_add_test(CleanTest CleanTest.h CleanTest.cpp ${CORRADE_UTILITY_LIBRARY}) |
corrade_add_test(MeshToolsCleanTest CleanTest.h CleanTest.cpp ${CORRADE_UTILITY_LIBRARY}) |
||||||
corrade_add_test(CombineIndexedArraysTest CombineIndexedArraysTest.h CombineIndexedArraysTest.cpp ${CORRADE_UTILITY_LIBRARY}) |
corrade_add_test(MeshToolsCombineIndexedArraysTest CombineIndexedArraysTest.h CombineIndexedArraysTest.cpp ${CORRADE_UTILITY_LIBRARY}) |
||||||
corrade_add_test(CompressIndicesTest CompressIndicesTest.h CompressIndicesTest.cpp ${CORRADE_UTILITY_LIBRARY} ${MAGNUM_LIBRARY}) |
corrade_add_test(MeshToolsCompressIndicesTest CompressIndicesTest.h CompressIndicesTest.cpp Magnum) |
||||||
corrade_add_test(FlipNormalsTest FlipNormalsTest.h FlipNormalsTest.cpp MagnumMeshToolsTestLib) |
corrade_add_test(MeshToolsFlipNormalsTest FlipNormalsTest.h FlipNormalsTest.cpp MagnumMeshToolsTestLib) |
||||||
corrade_add_test(GenerateFlatNormalsTest GenerateFlatNormalsTest.h GenerateFlatNormalsTest.cpp MagnumMeshToolsTestLib) |
corrade_add_test(MeshToolsGenerateFlatNormalsTest GenerateFlatNormalsTest.h GenerateFlatNormalsTest.cpp MagnumMeshToolsTestLib) |
||||||
corrade_add_test(InterleaveTest InterleaveTest.h InterleaveTest.cpp ${CORRADE_UTILITY_LIBRARY}) |
corrade_add_test(MeshToolsInterleaveTest InterleaveTest.h InterleaveTest.cpp ${CORRADE_UTILITY_LIBRARY}) |
||||||
corrade_add_test(SubdivideTest SubdivideTest.h SubdivideTest.cpp ${CORRADE_UTILITY_LIBRARY}) |
corrade_add_test(MeshToolsSubdivideTest SubdivideTest.h SubdivideTest.cpp ${CORRADE_UTILITY_LIBRARY}) |
||||||
corrade_add_test(SubdivideCleanBenchmark SubdivideCleanBenchmark.h SubdivideCleanBenchmark.cpp ${CORRADE_UTILITY_LIBRARY} ${MAGNUM_PRIMITIVES_LIBRARY}) |
corrade_add_test(MeshToolsSubdivideCleanBenchmark SubdivideCleanBenchmark.h SubdivideCleanBenchmark.cpp ${MAGNUM_PRIMITIVES_LIBRARY}) |
||||||
corrade_add_test(TipsifyTest TipsifyTest.h TipsifyTest.cpp ${MAGNUM_MESHTOOLS_LIBRARY}) |
corrade_add_test(MeshToolsTipsifyTest TipsifyTest.h TipsifyTest.cpp ${MAGNUM_MESHTOOLS_LIBRARY}) |
||||||
|
|
||||||
# Graceful assert for testing |
# Graceful assert for testing |
||||||
set_target_properties(CombineIndexedArraysTest InterleaveTest SubdivideTest PROPERTIES COMPILE_FLAGS -DCORRADE_GRACEFUL_ASSERT) |
set_target_properties(MeshToolsCombineIndexedArraysTest MeshToolsInterleaveTest MeshToolsSubdivideTest PROPERTIES COMPILE_FLAGS -DCORRADE_GRACEFUL_ASSERT) |
||||||
|
|||||||
@ -1,2 +1,2 @@ |
|||||||
corrade_add_test(CapsuleTest CapsuleTest.h CapsuleTest.cpp ${MAGNUM_PRIMITIVES_LIBRARY}) |
corrade_add_test(PrimitivesCapsuleTest CapsuleTest.h CapsuleTest.cpp MagnumPrimitives) |
||||||
corrade_add_test(UVSphereTest UVSphereTest.h UVSphereTest.cpp ${MAGNUM_PRIMITIVES_LIBRARY}) |
corrade_add_test(PrimitivesUVSphereTest UVSphereTest.h UVSphereTest.cpp MagnumPrimitives) |
||||||
|
|||||||
Loading…
Reference in new issue