initial commit
This commit is contained in:
20
CMakeLists.txt
Normal file
20
CMakeLists.txt
Normal 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)
|
||||
Reference in New Issue
Block a user