diff --git a/CMakeLists.txt b/CMakeLists.txt index 91402c7..b21302c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,9 @@ set(TOML tomlc99/toml.c) set(CRC16 crc16/crc16.c) set(LOGC logc/log.c) +# 设置彩色日志输出 +add_definitions(-DLOG_USE_COLOR) + # add_library(bycmd SHARED ${BYCMD} ${FRAME} ${CRC16}) # add_library(bycmd ${BYCMD} ${FRAME} ${CRC16}) # add_executable(${test} ${TEST_MAIN} ${FRAME})