added cmake support for csp lib

This commit is contained in:
2020-12-29 13:59:31 +01:00
parent 96ea535242
commit 9a6fbbaff6
42 changed files with 490 additions and 67 deletions

25
libcsp/src/CMakeLists.txt Normal file
View File

@ -0,0 +1,25 @@
target_sources(${LIB_CSP_NAME} PRIVATE
csp_bridge.c
csp_buffer.c
csp_conn.c
csp_crc32.c
csp_debug.c
csp_dedup.c
csp_endian.c
csp_hex_dump.c
csp_pflist.c
csp_io.c
csp_port.c
csp_promisc.c
csp_qfifo.c
csp_route.c
csp_service_handler.c
csp_services.c
csp_sfp.c
)
add_subdirectory(drivers)
add_subdirectory(crypto)
add_subdirectory(interfaces)
add_subdirectory(rtable)

View File

@ -0,0 +1,9 @@
target_sources(${LIB_CSP_NAME} PRIVATE
csp_malloc.c
csp_queue.c
csp_sempahore.c
csp_system.c
csp_thread.c
csp_time.c
pthread_queue.c
)

View File

@ -0,0 +1,5 @@
target_sources(${LIB_CSP_NAME} PRIVATE
csp_hmac.c
csp_sha1.c
csp_xtea.c
)

View File

@ -0,0 +1 @@
add_subdirectory(can)

View File

@ -0,0 +1,3 @@
target_sources(${LIB_CSP_NAME} PRIVATE
can_socketcan.c
)

View File

@ -0,0 +1,7 @@
target_sources(${LIB_CSP_NAME} PRIVATE
csp_if_can_pbuf.c
csp_if_can.c
csp_if_i2c.c
csp_if_kiss.c
csp_if_lo.c
)

View File

@ -0,0 +1,3 @@
target_sources(${LIB_CSP_NAME} PRIVATE
csp_rtable_cidr.c
)

View File

@ -0,0 +1,4 @@
target_sources(${LIB_CSP_NAME} PRIVATE
csp_rdp.c
csp_udp.c
)