Skip to content

Commit

Permalink
Review imgui test engine include path
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Jan 31, 2024
1 parent d0a4206 commit 499444b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/ci_automation_tests/ci_automation_test_app.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include "hello_imgui/hello_imgui.h"

#include "imgui_te_engine.h"
#include "imgui_te_context.h"
#include "imgui_te_ui.h"
#include "imgui_test_engine/imgui_te_engine.h"
#include "imgui_test_engine/imgui_te_context.h"
#include "imgui_test_engine/imgui_te_ui.h"

#include <cstdio>

Expand Down
2 changes: 1 addition & 1 deletion src/hello_imgui/internal/backend_impls/abstract_runner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "hello_imgui_test_engine_integration/test_engine_integration.h"

#ifdef IMGUI_TEST_ENGINE_WITH_PYTHON_GIL
#include "imgui_te_python_gil.h"
#include "imgui_test_engine/imgui_te_python_gil.h"
#define SCOPED_RELEASE_GIL_ON_MAIN_THREAD ImGuiTestEnginePythonGIL::ReleaseGilOnMainThread_Scoped _gilRelease
#else
#define SCOPED_RELEASE_GIL_ON_MAIN_THREAD
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

#include "hello_imgui/hello_imgui.h"

#include "imgui_te_engine.h"
#include "imgui_te_context.h"
#include "imgui_te_ui.h"
#include "imgui_test_engine/imgui_te_engine.h"
#include "imgui_test_engine/imgui_te_context.h"
#include "imgui_test_engine/imgui_te_ui.h"
#include "hello_imgui_test_engine_integration/test_engine_integration.h"


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function(_add_imgui_test_engine_lib)
set(te_source_folder ${HELLOIMGUI_IMGUI_TEST_ENGINE_SOURCE_DIR}/imgui_test_engine)
file(GLOB_RECURSE sources ${te_source_folder}/*.h ${te_source_folder}/*.cpp)
add_library(imgui_test_engine ${sources})
target_include_directories(imgui_test_engine PUBLIC $<BUILD_INTERFACE:${te_source_folder}>)
target_include_directories(imgui_test_engine PUBLIC $<BUILD_INTERFACE:${te_source_folder}/..>)

# Link imgui_test_engine with imgui
target_link_libraries(imgui_test_engine PUBLIC imgui)
Expand All @@ -51,7 +51,7 @@ function(_add_imgui_test_engine_lib)
# install test_engine headers
if(PROJECT_IS_TOP_LEVEL)
file(GLOB te_headers ${te_source_folder}/*.h)
install(FILES ${te_headers} DESTINATION include)
install(FILES ${te_headers} DESTINATION include/imgui_test_engine)
install(DIRECTORY ${te_source_folder}/thirdparty DESTINATION include)
endif()
him_add_installable_dependency(imgui_test_engine)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "imgui_te_engine.h"
#include "imgui_test_engine/imgui_te_engine.h"
#include "hello_imgui/runner_params.h"
#include "hello_imgui/internal/functional_utils.h"
#include "hello_imgui/internal/backend_impls/opengl_setup_helper/opengl_screenshot.h"
Expand Down

0 comments on commit 499444b

Please sign in to comment.