mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 01:10:04 +00:00 
			
		
		
		
	Add imgui dependency
This commit is contained in:
		
							parent
							
								
									e0dceda2d2
								
							
						
					
					
						commit
						3c69ad28c6
					
				
					 5 changed files with 32 additions and 0 deletions
				
			
		
							
								
								
									
										3
									
								
								.gitmodules
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.gitmodules
									
										
									
									
										vendored
									
									
								
							|  | @ -19,3 +19,6 @@ | |||
| [submodule "data"] | ||||
| 	path = data | ||||
| 	url = ../supercell-wx-data | ||||
| [submodule "external/imgui"] | ||||
| 	path = external/imgui | ||||
| 	url = https://github.com/ocornut/imgui.git | ||||
|  |  | |||
							
								
								
									
										2
									
								
								external/CMakeLists.txt
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								external/CMakeLists.txt
									
										
									
									
										vendored
									
									
								
							|  | @ -6,10 +6,12 @@ set_property(DIRECTORY | |||
|              PROPERTY CMAKE_CONFIGURE_DEPENDS | ||||
|              freetype-gl.cmake | ||||
|              hsluv-c.cmake | ||||
|              imgui.cmake | ||||
|              mapbox-gl-native.cmake | ||||
|              stb.cmake) | ||||
| 
 | ||||
| include(freetype-gl.cmake) | ||||
| include(hsluv-c.cmake) | ||||
| include(imgui.cmake) | ||||
| include(mapbox-gl-native.cmake) | ||||
| include(stb.cmake) | ||||
|  |  | |||
							
								
								
									
										1
									
								
								external/imgui
									
										
									
									
										vendored
									
									
										Submodule
									
								
							
							
						
						
									
										1
									
								
								external/imgui
									
										
									
									
										vendored
									
									
										Submodule
									
								
							|  | @ -0,0 +1 @@ | |||
| Subproject commit 81160fee56027226bc80b48e196d0332f5541a8c | ||||
							
								
								
									
										24
									
								
								external/imgui.cmake
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								external/imgui.cmake
									
										
									
									
										vendored
									
									
										Normal file
									
								
							|  | @ -0,0 +1,24 @@ | |||
| cmake_minimum_required(VERSION 3.20) | ||||
| set(PROJECT_NAME scwx-imgui) | ||||
| 
 | ||||
| set(IMGUI_SOURCES imgui/imconfig.h | ||||
|                   imgui/imgui.cpp | ||||
|                   imgui/imgui.h | ||||
|                   imgui/imgui_demo.cpp | ||||
|                   imgui/imgui_draw.cpp | ||||
|                   imgui/imgui_internal.h | ||||
|                   imgui/imgui_tables.cpp | ||||
|                   imgui/imgui_widgets.cpp | ||||
|                   imgui/imstb_rectpack.h | ||||
|                   imgui/imstb_textedit.h | ||||
|                   imgui/imstb_truetype.h | ||||
|                   imgui/backends/imgui_impl_opengl3.cpp | ||||
|                   imgui/backends/imgui_impl_opengl3.h) | ||||
| 
 | ||||
| add_library(imgui STATIC ${IMGUI_SOURCES}) | ||||
| 
 | ||||
| target_include_directories(imgui PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/imgui) | ||||
| 
 | ||||
| set(IMGUI_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/imgui PARENT_SCOPE) | ||||
| 
 | ||||
| set_target_properties(imgui PROPERTIES FOLDER imgui) | ||||
|  | @ -293,6 +293,7 @@ endif() | |||
| 
 | ||||
| target_include_directories(scwx-qt PUBLIC ${scwx-qt_SOURCE_DIR}/source | ||||
|                                           ${FTGL_INCLUDE_DIR} | ||||
|                                           ${IMGUI_INCLUDE_DIR} | ||||
|                                           ${MBGL_INCLUDE_DIR} | ||||
|                                           ${STB_INCLUDE_DIR}) | ||||
| 
 | ||||
|  | @ -316,6 +317,7 @@ target_link_libraries(scwx-qt PUBLIC Qt${QT_VERSION_MAJOR}::Widgets | |||
|                                      freetype-gl | ||||
|                                      GeographicLib::GeographicLib | ||||
|                                      glm::glm | ||||
|                                      imgui | ||||
|                                      SQLite::SQLite3 | ||||
|                                      wxdata) | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat