From 6b0b279835b203a0be53383cd567fbd9ffaa136e Mon Sep 17 00:00:00 2001 From: bmy <2583236812@qq.com> Date: Tue, 21 May 2024 15:06:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=94=9F=E6=88=90=E5=8A=A8?= =?UTF-8?q?=E6=80=81=E5=BA=93=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 3 ++- CMakeLists.txt | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 93c7f21..2ebe8eb 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -6,5 +6,6 @@ "by_serial.h": "c", "log.h": "c", "termios.h": "c" - } + }, + "cmake.configureOnOpen": true } \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index ab01009..82053f4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,6 +15,7 @@ set(LOGC logc/log.c) # add_library(bycmd ${BYCMD} ${FRAME} ${CRC16}) # add_executable(${test} ${TEST_MAIN} ${FRAME}) add_executable(bycmd_test ${BYCMD} ${TOML} ${CRC16} ${LOGC} ${TEST_MAIN}) +add_library(bycmd SHARED ${BYCMD} ${TOML} ${CRC16} ${LOGC}) target_link_libraries(bycmd_test pthread) # target_link_libraries(${test} bycmd) \ No newline at end of file