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

include(Linking)
include(Prebuilt)

include_guard()
add_library( ll::meshoptimizer INTERFACE IMPORTED )

use_conan_binary(meshoptimizer)
use_prebuilt_binary(meshoptimizer)

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

target_include_directories( ll::meshoptimizer SYSTEM INTERFACE ${LIBS_PREBUILT_DIR}/include/meshoptimizer)