Dev test (#6)
* #feat 增强Fatal级别的底色,修改logging类的方法 * 更新版本号 * 加入test脚本 * fix:conanfile * test action
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
cmake_minimum_required( VERSION 3.28)
|
||||
project(logging)
|
||||
|
||||
option(TEST "是否启动单元测试" ON)
|
||||
option(SHARED "是否编译为动态库" OFF)
|
||||
|
||||
set(LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib)
|
||||
set(ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib)
|
||||
@@ -11,7 +14,7 @@ include_directories(${CMAKE_SOURCE_DIR}/include)
|
||||
add_subdirectory(src)
|
||||
|
||||
#测试单元
|
||||
if (SKIPTEST)
|
||||
else()
|
||||
if (TEST)
|
||||
enable_testing()
|
||||
add_subdirectory(tests)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user