initial commit

This commit is contained in:
bmy
2024-05-17 01:57:18 +08:00
commit 478e698ae9
19 changed files with 3821 additions and 0 deletions

20
CMakeLists.txt Normal file
View File

@@ -0,0 +1,20 @@
cmake_minimum_required(VERSION 3.16)
project(bycmd)
# set(CRC16 by_cmd/crc16/crc16.cc)
set(TEST_MAIN test.c)
set(BYCMD by_serial.c
by_frame.c
by_cmd.c)
set(TOML tomlc99/toml.c)
set(CRC16 crc16/crc16.c)
set(LOGC logc/log.c)
# add_library(bycmd SHARED ${BYCMD} ${FRAME} ${CRC16})
# add_library(bycmd ${BYCMD} ${FRAME} ${CRC16})
# add_executable(${test} ${TEST_MAIN} ${FRAME})
add_executable(bycmd_test ${BYCMD} ${TOML} ${CRC16} ${LOGC} ${TEST_MAIN})
target_link_libraries(bycmd_test pthread)
# target_link_libraries(${test} bycmd)