diff options
author | Nicky <nicky.dasmijn@posteo.nl> | 2022-06-05 16:15:55 +0200 |
---|---|---|
committer | Nicky <nicky.dasmijn@posteo.nl> | 2022-06-05 16:15:55 +0200 |
commit | c08a61453b21664da3687661512e2ea208f90d98 (patch) | |
tree | b972275919bf6c620bbbcb81dd6b12568494561e /indra/cmake/MESHOPTIMIZER.cmake | |
parent | 59f6062685efd4c52f06c526e52a9fa00ddfabeb (diff) |
Port new cmake files (Trace/Meshoptimizer) to modern cmake
Diffstat (limited to 'indra/cmake/MESHOPTIMIZER.cmake')
-rw-r--r-- | indra/cmake/MESHOPTIMIZER.cmake | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/indra/cmake/MESHOPTIMIZER.cmake b/indra/cmake/MESHOPTIMIZER.cmake index 1c5b47b9bd..0d51f47866 100644 --- a/indra/cmake/MESHOPTIMIZER.cmake +++ b/indra/cmake/MESHOPTIMIZER.cmake @@ -3,14 +3,19 @@ include(Linking) include(Prebuilt) +include_guard() +add_library( ll::meshoptimizer INTERFACE IMPORTED ) + +use_conan_binary(meshoptimizer) use_prebuilt_binary(meshoptimizer) if (WINDOWS) - set(MESHOPTIMIZER_LIBRARIES meshoptimizer.lib) + target_link_libraries( ll::meshoptimizer INTERFACE meshoptimizer.lib) + set(MESHOPTIMIZER_LIBRARIES ) elseif (LINUX) - set(MESHOPTIMIZER_LIBRARIES meshoptimizer.o) + target_link_libraries( ll::meshoptimizer INTERFACE meshoptimizer.o) elseif (DARWIN) - set(MESHOPTIMIZER_LIBRARIES libmeshoptimizer.a) + target_link_libraries( ll::meshoptimizer INTERFACE libmeshoptimizer.a) endif (WINDOWS) -set(MESHOPTIMIZER_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/meshoptimizer) +target_include_directories( ll::meshoptimizer SYSTEM INTERFACE ${LIBS_PREBUILT_DIR}/include/meshoptimizer) |