fix:conanfile
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
cmake_minimum_required( VERSION 3.28)
|
||||
project(Logging)
|
||||
project(logging)
|
||||
|
||||
enable_testing()
|
||||
option(TEST "是否启动单元测试" ON)
|
||||
option(SHARED "是否编译为动态库" OFF)
|
||||
|
||||
set(LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib)
|
||||
set(ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib)
|
||||
@@ -13,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