summaryrefslogtreecommitdiff
path: root/indra/cmake/MESHOPTIMIZER.cmake
blob: 1c5b47b9bddfd81c28eb840b2dae6361eed97d42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# -*- cmake -*-

include(Linking)
include(Prebuilt)

use_prebuilt_binary(meshoptimizer)

if (WINDOWS)
  set(MESHOPTIMIZER_LIBRARIES meshoptimizer.lib)
elseif (LINUX)
  set(MESHOPTIMIZER_LIBRARIES meshoptimizer.o)
elseif (DARWIN)
  set(MESHOPTIMIZER_LIBRARIES libmeshoptimizer.a)
endif (WINDOWS)

set(MESHOPTIMIZER_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/meshoptimizer)