From 2f518e5e28d35ae24a5ac0e31000835e43b01972 Mon Sep 17 00:00:00 2001 From: sanine Date: Tue, 14 Jun 2022 00:06:42 -0500 Subject: add cglm as 3rd-party library --- libs/cglm/test/src/tests.c | 63 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 libs/cglm/test/src/tests.c (limited to 'libs/cglm/test/src/tests.c') diff --git a/libs/cglm/test/src/tests.c b/libs/cglm/test/src/tests.c new file mode 100644 index 0000000..1505e32 --- /dev/null +++ b/libs/cglm/test/src/tests.c @@ -0,0 +1,63 @@ +/* + * Copyright (c), Recep Aslantas. + * + * MIT License (MIT), http://opensource.org/licenses/MIT + * Full license can be found in the LICENSE file + */ + +/* test inline */ +/*---------------------------------------------------------------------------*/ + + +#define GLM_PREFIX glm_ +#define GLM(X) (glm_ ## X) + +#include "test_vec2.h" +#include "test_vec3.h" +#include "test_vec4.h" +#include "test_ivec2.h" +#include "test_ivec3.h" +#include "test_ivec4.h" +#include "test_mat2.h" +#include "test_mat3.h" +#include "test_mat4.h" +#include "test_quat.h" +#include "test_project.h" +#include "test_plane.h" +#include "test_affine.h" +#include "test_affine2d.h" +#include "test_affine_mat.h" +#include "test_ray.h" +#include "test_camera.h" + +#undef GLM +#undef GLM_PREFIX + +/* test pre-compiled */ +/*---------------------------------------------------------------------------*/ + +#define GLM_PREFIX glmc_ +#define GLM(X) (glmc_ ## X) + +#include "test_vec2.h" +#include "test_vec3.h" +#include "test_vec4.h" +#include "test_ivec2.h" +#include "test_ivec3.h" +#include "test_ivec4.h" +#include "test_mat2.h" +#include "test_mat3.h" +#include "test_mat4.h" +#include "test_quat.h" +#include "test_project.h" +#include "test_plane.h" +#include "test_affine.h" +#include "test_affine2d.h" +#include "test_affine_mat.h" +#include "test_ray.h" +#include "test_camera.h" + +#undef GLM +#undef GLM_PREFIX + +/*---------------------------------------------------------------------------*/ -- cgit v1.2.1