Compare commits
	
		
			2 commits
		
	
	
		
			
				8343f3f8de
			
			...
			
				eb2bfdfce1
			
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
							
							
								
							
							
	
	
		
			
		
	
	eb2bfdfce1 | 
						
						
							|||
| 
							
							
								
							
							
	
	
		
			
		
	
	23ddfc4426 | 
						
						
							
					 2 changed files with 18 additions and 3 deletions
				
			
		| 
						 | 
					@ -1,9 +1,22 @@
 | 
				
			||||||
cmake_minimum_required(VERSION 3.30)
 | 
					cmake_minimum_required(VERSION 3.30)
 | 
				
			||||||
project(LearnGtk4 LANGUAGES CXX)
 | 
					project(LearnGtk4 LANGUAGES CXX)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					include(FetchContent)
 | 
				
			||||||
find_package(PkgConfig REQUIRED)
 | 
					find_package(PkgConfig REQUIRED)
 | 
				
			||||||
pkg_check_modules(GTKMM4 REQUIRED IMPORTED_TARGET gtkmm-4.0)
 | 
					pkg_check_modules(GTKMM4 REQUIRED IMPORTED_TARGET gtkmm-4.0)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					fetchcontent_declare(BillySheet
 | 
				
			||||||
 | 
					        GIT_REPOSITORY https://gitea.pcornatcloud.fr/Pcornat/BillySheet.git
 | 
				
			||||||
 | 
					        GIT_SUBMODULES_RECURSE ON
 | 
				
			||||||
 | 
					        GIT_SHALLOW ON
 | 
				
			||||||
 | 
					        DOWNLOAD_EXTRACT_TIMESTAMP OFF
 | 
				
			||||||
 | 
					        OVERRIDE_FIND_PACKAGE
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					option(BILLY_ENABLE_TESTS "Enable Unit testing target" OFF)
 | 
				
			||||||
 | 
					fetchcontent_makeavailable(BillySheet)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					find_package(BillySheet CONFIG REQUIRED)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
find_program(CCACHE_FOUND ccache)
 | 
					find_program(CCACHE_FOUND ccache)
 | 
				
			||||||
if (CCACHE_FOUND)
 | 
					if (CCACHE_FOUND)
 | 
				
			||||||
    message(STATUS "ccache found !")
 | 
					    message(STATUS "ccache found !")
 | 
				
			||||||
| 
						 | 
					@ -86,4 +99,4 @@ target_compile_definitions(LearnGtk4 PUBLIC $<$<CONFIG:Debug>:_GLIBCXX_DEBUG>)
 | 
				
			||||||
target_compile_definitions(assimp PUBLIC $<$<CONFIG:Debug>:_GLIBCXX_DEBUG>)
 | 
					target_compile_definitions(assimp PUBLIC $<$<CONFIG:Debug>:_GLIBCXX_DEBUG>)
 | 
				
			||||||
target_compile_options(LearnGtk4 PUBLIC ${COMPILE_FLAGS})
 | 
					target_compile_options(LearnGtk4 PUBLIC ${COMPILE_FLAGS})
 | 
				
			||||||
target_link_options(LearnGtk4 PUBLIC ${LINKER_OPTIONS})
 | 
					target_link_options(LearnGtk4 PUBLIC ${LINKER_OPTIONS})
 | 
				
			||||||
target_link_libraries(LearnGtk4 PkgConfig::GTKMM4 assimp spdlog_header_only)
 | 
					target_link_libraries(LearnGtk4 PkgConfig::GTKMM4 assimp spdlog_header_only BillySheet)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -112,9 +112,11 @@ namespace gui_to_app {
 | 
				
			||||||
    void AppWin2Back::on_quit() noexcept {
 | 
					    void AppWin2Back::on_quit() noexcept {
 | 
				
			||||||
        auto windows = get_windows();
 | 
					        auto windows = get_windows();
 | 
				
			||||||
        for (auto *window: windows) {
 | 
					        for (auto *window: windows) {
 | 
				
			||||||
 | 
					            if (window != nullptr) {
 | 
				
			||||||
                window->set_visible(false);
 | 
					                window->set_visible(false);
 | 
				
			||||||
                delete window;
 | 
					                delete window;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
        quit();
 | 
					        quit();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
} // gui_to_app
 | 
					} // gui_to_app
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue