cmake: List spdlog's content in IDEs
This is a usual CMake way of ensuring that IDEs have a way of showing all source files which comprise this header-only library. It works in the Qt Creator, for example.
This commit is contained in:
		@@ -78,3 +78,6 @@ install(
 | 
				
			|||||||
    NAMESPACE "${namespace}"
 | 
					    NAMESPACE "${namespace}"
 | 
				
			||||||
    DESTINATION "${config_install_dir}"
 | 
					    DESTINATION "${config_install_dir}"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					file(GLOB_RECURSE spdlog_include_SRCS "${HEADER_BASE}/*.h")
 | 
				
			||||||
 | 
					add_custom_target(spdlog_headers_for_ide SOURCES ${spdlog_include_SRCS})
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user