mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-26 15:39:00 +08:00
7db2ffa0b0
* [imgui] Separate feature tools from feature example * [imgui] Separate feature tools from feature example Co-authored-by: JackBoosY <yuzaiyang@microsoft.com>
46 lines
1.3 KiB
Diff
46 lines
1.3 KiB
Diff
diff --git a/tools/k4aviewer/CMakeLists.txt b/tools/k4aviewer/CMakeLists.txt
|
|
index 6ab38d9..e0c5bad 100644
|
|
--- a/tools/k4aviewer/CMakeLists.txt
|
|
+++ b/tools/k4aviewer/CMakeLists.txt
|
|
@@ -35,6 +35,8 @@ set(SOURCE_FILES
|
|
k4awindowset.cpp
|
|
perfcounter.cpp
|
|
${CMAKE_CURRENT_BINARY_DIR}/version.rc
|
|
+ ${IMGUI_EXTERNAL_PATH}/imgui_impl_glfw.cpp
|
|
+ ${IMGUI_EXTERNAL_PATH}/imgui_impl_opengl3.cpp
|
|
)
|
|
|
|
# Include ${CMAKE_CURRENT_BINARY_DIR}/version.rc in the target's sources
|
|
@@ -54,6 +56,8 @@ include_directories(
|
|
${CMAKE_CURRENT_LIST_DIR}
|
|
)
|
|
|
|
+find_package(GLEW REQUIRED)
|
|
+
|
|
set(EXTERNAL_LIBRARIES
|
|
k4a::k4a
|
|
k4a::k4arecord
|
|
@@ -65,6 +69,7 @@ set(EXTERNAL_LIBRARIES
|
|
glfw
|
|
${OPENGL_LIBRARIES}
|
|
unofficial::gl3w::gl3w
|
|
+ GLEW::GLEW
|
|
)
|
|
|
|
# On Windows, we need to call into setupapi to get USB container ID information
|
|
diff --git a/tools/k4aviewer/k4aimgui_all.h b/tools/k4aviewer/k4aimgui_all.h
|
|
index e40ccfb..756fb09 100644
|
|
--- a/tools/k4aviewer/k4aimgui_all.h
|
|
+++ b/tools/k4aviewer/k4aimgui_all.h
|
|
@@ -34,8 +34,8 @@
|
|
#include <GL/gl3w.h>
|
|
#include <GLFW/glfw3.h>
|
|
#include <imgui.h>
|
|
-#include <imgui_impl_glfw.h>
|
|
-#include <imgui_impl_opengl3.h>
|
|
+#include <bindings/imgui_impl_glfw.h>
|
|
+#include <bindings/imgui_impl_opengl3.h>
|
|
|
|
// For disabling buttons, which has not yet been promoted to the public API
|
|
//
|