From 235ce49408efdc5102e3efb4fd5e3eac3fad5fe9 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Tue, 20 Aug 2019 18:02:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=95=B0=E5=AD=A6=E5=BA=93?= =?UTF-8?q?=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- math.cmake | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 math.cmake diff --git a/math.cmake b/math.cmake new file mode 100644 index 0000000..7c715b3 --- /dev/null +++ b/math.cmake @@ -0,0 +1,8 @@ +macro(use_mgl MGL_PATH) + add_definitions(-DMATH_USE_OPENGL) + add_definitions(-DMATH_RIGHTHANDED_CAMERA) + add_definitions(-DMATH_AVX) + + include_directories(${MGL_PATH}/src) + add_subdirectory(${MGL_PATH}) +endmacro()