From 5a5d35026e91b2708e199b5c6de6d87b9ab34330 Mon Sep 17 00:00:00 2001 From: bmy <2583236812@qq.com> Date: Fri, 14 Jun 2024 17:43:00 +0800 Subject: [PATCH] =?UTF-8?q?pref:=20=E6=9B=B4=E6=94=B9=E4=B8=BA=E5=BD=A9?= =?UTF-8?q?=E8=89=B2=E6=97=A5=E5=BF=97=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) 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})