* #feat 增强Fatal级别的底色,修改logging类的方法 * 更新版本号 * 加入test脚本 * fix:conanfile * test action * 修复错别字 * add test on windows action * fix test on windows action * fix action on windows * fix * fix 内存分配错误 * fix msvc 不支持中文注释,删除中文注释 * test on windows and test chinese char * ersion 0.2.4
		
			
				
	
	
		
			25 lines
		
	
	
		
			483 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			483 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| cmake_minimum_required(VERSION 3.28...3.30)
 | |
| 
 | |
| project(logging)
 | |
| 
 | |
| if(MSVC)
 | |
|     add_compile_options("/source-charset:utf-8")
 | |
|     add_compile_options("/execution-charset:utf-8")
 | |
| endif()
 | |
| 
 | |
| set(CMAKE_EXPORT_COMPILE_COMMANDS yes)
 | |
| 
 | |
| option(TEST "是否启动单元测试" ON)
 | |
| option(SHARED "是否编译为动态库" OFF)
 | |
| 
 | |
| include_directories(${CMAKE_SOURCE_DIR}/include)
 | |
| 
 | |
| #编译库文件
 | |
| add_subdirectory(src)
 | |
| 
 | |
| #测试单元
 | |
| if (TEST)
 | |
|     enable_testing()
 | |
|     add_subdirectory(tests)
 | |
| endif()
 |