summaryrefslogtreecommitdiff
path: root/indra/cmake/MESHOPTIMIZER.cmake
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2021-07-06 21:26:15 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2021-07-07 00:42:31 +0300
commit97c954dd84d50ec7b739d2dd3adb7365589f3034 (patch)
treedd6383f3f7c1d7a89118a3968a28c8a737e43b7a /indra/cmake/MESHOPTIMIZER.cmake
parent467d8339c970c253dada2cf0e1eed45be66593ac (diff)
SL-15522 Initial addition of meshoptimizer
Diffstat (limited to 'indra/cmake/MESHOPTIMIZER.cmake')
-rw-r--r--indra/cmake/MESHOPTIMIZER.cmake16
1 files changed, 16 insertions, 0 deletions
diff --git a/indra/cmake/MESHOPTIMIZER.cmake b/indra/cmake/MESHOPTIMIZER.cmake
new file mode 100644
index 0000000000..7600a56999
--- /dev/null
+++ b/indra/cmake/MESHOPTIMIZER.cmake
@@ -0,0 +1,16 @@
+# -*- cmake -*-
+
+include(Prebuilt)
+
+use_prebuilt_binary(meshoptimizer)
+
+if (WINDOWS)
+ set(MESHOPTIMIZER_LIBRARIES
+ debug meshoptimizer
+ optimized meshoptimizer)
+elseif (LINUX)
+ set(MESHOPTIMIZER_LIBRARIES meshoptimizer)
+elseif (DARWIN)
+ set(MESHOPTIMIZER_LIBRARIES libmeshoptimizer.o)
+endif (WINDOWS)
+set(MESHOPTIMIZER_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/meshoptimizer)