aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/realsense2/devendor-stb.diff
blob: fc1de21897a596c02f96570ef8725ee2a81d778d (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
diff --git a/common/rendering.h b/common/rendering.h
index ed0b525..a36b5ff 100644
--- a/common/rendering.h
+++ b/common/rendering.h
@@ -233,7 +233,7 @@ namespace rs2
     // Simple font loading code //
     //////////////////////////////
 
-#include "../third-party/stb_easy_font.h"
+#include <stb_easy_font.h>
 
     inline void draw_text(int x, int y, const char * text)
     {
diff --git a/src/proc/color-formats-converter.cpp b/src/proc/color-formats-converter.cpp
index f0a54ba..13411fe 100644
--- a/src/proc/color-formats-converter.cpp
+++ b/src/proc/color-formats-converter.cpp
@@ -9,7 +9,7 @@
 
 #define STB_IMAGE_STATIC
 #define STB_IMAGE_IMPLEMENTATION
-#include "../third-party/stb_image.h"
+#include <stb_image.h>
 
 #ifdef RS2_USE_CUDA
 #include "cuda/cuda-conversion.cuh"
diff --git a/tools/convert/converters/converter-png.hpp b/tools/convert/converters/converter-png.hpp
index fcfd6ce..adbb1e6 100644
--- a/tools/convert/converters/converter-png.hpp
+++ b/tools/convert/converters/converter-png.hpp
@@ -7,7 +7,7 @@
 
 // 3rd party header for writing png files
 #define STB_IMAGE_WRITE_IMPLEMENTATION
-#include <third-party/stb_image_write.h>
+#include <stb_image_write.h>
 
 #include "../converter.hpp"
 
diff --git a/tools/embed/CMakeLists.txt b/tools/embed/CMakeLists.txt
index 4fd9aa1..951bfa6 100644
--- a/tools/embed/CMakeLists.txt
+++ b/tools/embed/CMakeLists.txt
@@ -19,6 +19,8 @@ target_link_libraries(rs-embed PRIVATE lz4::lz4)
 target_link_libraries( rs-embed PRIVATE tclap )
 set_target_properties (rs-embed PROPERTIES FOLDER Tools)
 
+find_package(Stb REQUIRED)
+target_include_directories(rs-embed PRIVATE "${Stb_INCLUDE_DIR}")
 
 install(
     TARGETS