Skip to content

Commit ea3790b

Browse files
committed
Clean up ImGui usage
1 parent 02b8e38 commit ea3790b

File tree

7 files changed

+3
-28
lines changed

7 files changed

+3
-28
lines changed

Externals/imgui-proj/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ target_sources(xrImGui PRIVATE
1313
"${IMGUI_DIR}/imgui_internal.h"
1414
"${IMGUI_DIR}/backends/imgui_impl_opengl3.cpp"
1515
"${IMGUI_DIR}/backends/imgui_impl_opengl3.h"
16+
"$<$<STREQUAL:$<PLATFORM_ID>,Windows>:${IMGUI_DIR}/backends/imgui_impl_dx11.cpp>"
17+
"$<$<STREQUAL:$<PLATFORM_ID>,Windows>:${IMGUI_DIR}/backends/imgui_impl_dx11.h>"
1618
"${IMGUI_DIR}/imstb_rectpack.h"
1719
"${IMGUI_DIR}/imstb_textedit.h"
1820
"${IMGUI_DIR}/imstb_truetype.h"

src/Layers/xrRenderPC_R4/CMakeLists.txt

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -78,33 +78,12 @@ file(GLOB XR_RENDERPC_R4_R2_SOURCES
7878
"${CMAKE_SOURCE_DIR}/src/Layers/xrRender_R2/*.cpp"
7979
)
8080

81-
set(XR_IMGUI_DIR "${CMAKE_SOURCE_DIR}/Externals/imgui")
82-
83-
set(XR_IMGUI_SOURCES
84-
"${XR_IMGUI_DIR}/imgui.cpp"
85-
"${XR_IMGUI_DIR}/imgui_draw.cpp"
86-
"${XR_IMGUI_DIR}/imgui_tables.cpp"
87-
"${XR_IMGUI_DIR}/imgui_widgets.cpp"
88-
)
89-
90-
if (MSVC)
91-
list(APPEND XR_IMGUI_SOURCES
92-
"${XR_IMGUI_DIR}/backends/imgui_impl_dx11.cpp"
93-
"${XR_IMGUI_DIR}/backends/imgui_impl_win32.cpp"
94-
)
95-
endif()
96-
97-
set_source_files_properties(${XR_IMGUI_SOURCES} PROPERTIES
98-
SKIP_PRECOMPILE_HEADERS ON
99-
)
100-
10181
target_sources(xrRenderPC_R4 PRIVATE
10282
${XR_RENDERPC_R4_SHARED_SOURCES}
10383
${XR_RENDERPC_R4_BLENDER_SOURCES}
10484
${XR_RENDERPC_R4_UTILITY_SOURCES}
10585
${XR_RENDERPC_R4_DX11_SOURCES}
10686
${XR_RENDERPC_R4_R2_SOURCES}
107-
${XR_IMGUI_SOURCES}
10887
)
10988

11089
target_include_directories(xrRenderPC_R4
@@ -114,7 +93,6 @@ target_include_directories(xrRenderPC_R4
11493
"${CMAKE_SOURCE_DIR}/src/Layers/xrRender_R2"
11594
"${CMAKE_SOURCE_DIR}/src/Layers/xrRender"
11695
"${CMAKE_SOURCE_DIR}/src/Layers/xrRenderDX11"
117-
"${XR_IMGUI_DIR}"
11896
"${CMAKE_SOURCE_DIR}/sdk/include"
11997
"${CMAKE_SOURCE_DIR}/sdk/include/DirectXMesh"
12098
"${CMAKE_SOURCE_DIR}/sdk/include/nvapi"

src/xrCDB/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ target_include_directories(xrCDB
4040
PRIVATE
4141
"${CMAKE_SOURCE_DIR}/src"
4242
"${CMAKE_SOURCE_DIR}/Externals"
43-
"${CMAKE_SOURCE_DIR}/Externals/imgui"
4443
)
4544

4645
target_link_libraries(xrCDB

src/xrEngine/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,6 @@ target_sources(xrEngine
413413
target_include_directories(xrEngine
414414
PUBLIC
415415
"${CMAKE_SOURCE_DIR}/src"
416-
"${CMAKE_SOURCE_DIR}/Externals/imgui"
417416

418417
PRIVATE
419418
"${CMAKE_CURRENT_SOURCE_DIR}"
@@ -423,6 +422,7 @@ target_include_directories(xrEngine
423422
target_link_libraries(xrEngine
424423
PUBLIC
425424
xrMiscMath
425+
xrImGui
426426

427427
PRIVATE
428428
xrAPI
@@ -432,7 +432,6 @@ target_link_libraries(xrEngine
432432
xrSound
433433
xrScriptEngine
434434
xrNetServer
435-
xrImGui
436435
OpenAL::OpenAL
437436
Ogg::Ogg
438437
Theora::Theora

src/xrGame/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2489,7 +2489,6 @@ target_link_libraries(xrGame
24892489
xrEngine
24902490
xrMaterialSystem
24912491
xrMiscMath
2492-
xrImGui
24932492
xrAPI
24942493
xrAICore
24952494
xrUICore

src/xrPhysics/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,6 @@ target_include_directories(xrPhysics
400400
PRIVATE
401401
"${CMAKE_CURRENT_SOURCE_DIR}"
402402
"${CMAKE_SOURCE_DIR}/src"
403-
"${CMAKE_SOURCE_DIR}/Externals/imgui"
404403
"${CMAKE_SOURCE_DIR}/Externals/ode/include"
405404
)
406405

src/xrUICore/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ target_link_libraries(xrUICore
136136
xrScriptEngine
137137
xrEngine
138138
xrMiscMath
139-
xrImGui
140139
xrCore
141140
xrSound
142141
)

0 commit comments

Comments
 (0)