blob: 68381f5d49404b5d77d4a81ef3ca4b452ff67692 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8ca03ab..af7eb9d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -147,6 +147,11 @@ if(MESHOPT_BUILD_GLTFPACK)
target_compile_definitions(gltfpack PRIVATE WITH_BASISU)
target_link_libraries(gltfpack basisu_encoder)
set_source_files_properties(gltf/encodebasis.cpp PROPERTIES INCLUDE_DIRECTORIES ${BASISU_PATH}) # necessary because basisu_encoder doesn't export include directories
+ else()
+ find_package(basisu CONFIG REQUIRED)
+ find_package(Threads REQUIRED) # cf. further down
+ target_compile_definitions(gltfpack PRIVATE WITH_BASISU)
+ target_link_libraries(gltfpack basisu::basisu_encoder Threads::Threads)
endif()
if(NOT MESHOPT_GLTFPACK_LIBWEBP_PATH STREQUAL "")
diff --git a/gltf/encodebasis.cpp b/gltf/encodebasis.cpp
index 73cd962..74abf1b 100644
--- a/gltf/encodebasis.cpp
+++ b/gltf/encodebasis.cpp
@@ -22,7 +22,7 @@
#pragma GCC diagnostic ignored "-Wc++17-extensions"
#endif
-#include "encoder/basisu_comp.h"
+#include "basisu/encoder/basisu_comp.h"
struct BasisSettings
{
|