Adding spdlog in CMakeLists.txt
This commit is contained in:
		
					parent
					
						
							
								8af5d23737
							
						
					
				
			
			
				commit
				
					
						9515077e1e
					
				
			
		
					 1 changed files with 10 additions and 2 deletions
				
			
		| 
						 | 
					@ -60,6 +60,14 @@ else ()
 | 
				
			||||||
endif ()
 | 
					endif ()
 | 
				
			||||||
add_subdirectory(external/assimp EXCLUDE_FROM_ALL)
 | 
					add_subdirectory(external/assimp EXCLUDE_FROM_ALL)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					option(SPDLOG_ENABLE_PCH "Build static or shared library using precompiled header to speed up compilation time" ON)
 | 
				
			||||||
 | 
					option(SPDLOG_BUILD_WARNINGS "Enable compiler warnings" ON)
 | 
				
			||||||
 | 
					option(SPDLOG_PREVENT_CHILD_FD "Prevent from child processes to inherit log file descriptors" ON)
 | 
				
			||||||
 | 
					option(SPDLOG_NO_THREAD_ID "prevent spdlog from querying the thread id on each log call if thread id is not needed" ON)
 | 
				
			||||||
 | 
					option(SPDLOG_NO_TLS "prevent spdlog from using thread local storage" ON)
 | 
				
			||||||
 | 
					option(SPDLOG_NO_ATOMIC_LEVELS "prevent spdlog from using of std::atomic log levels (use only if your code never modifies log levels concurrently" ON)
 | 
				
			||||||
 | 
					add_subdirectory(external/spdlog EXCLUDE_FROM_ALL)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
add_executable(LearnGtk4 main.cpp
 | 
					add_executable(LearnGtk4 main.cpp
 | 
				
			||||||
        hello_world.cpp
 | 
					        hello_world.cpp
 | 
				
			||||||
        hello_world.hpp
 | 
					        hello_world.hpp
 | 
				
			||||||
| 
						 | 
					@ -67,7 +75,7 @@ add_executable(LearnGtk4 main.cpp
 | 
				
			||||||
        app_win_2_back.hpp
 | 
					        app_win_2_back.hpp
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
set_target_properties(LearnGtk4 assimp PROPERTIES
 | 
					set_target_properties(LearnGtk4 assimp spdlog_header_only PROPERTIES
 | 
				
			||||||
        CXX_STANDARD 17
 | 
					        CXX_STANDARD 17
 | 
				
			||||||
        CXX_STANDARD_REQUIRED ON
 | 
					        CXX_STANDARD_REQUIRED ON
 | 
				
			||||||
        CXX_EXTENSIONS OFF
 | 
					        CXX_EXTENSIONS OFF
 | 
				
			||||||
| 
						 | 
					@ -78,4 +86,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)
 | 
					target_link_libraries(LearnGtk4 PkgConfig::GTKMM4 assimp spdlog_header_only)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue