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