added cmake support for csp lib
This commit is contained in:
12
libcsp/CMakeLists.txt
Normal file
12
libcsp/CMakeLists.txt
Normal file
@ -0,0 +1,12 @@
|
||||
cmake_minimum_required(VERSION 3.13)
|
||||
|
||||
set(LIB_CSP_NAME libcsp)
|
||||
|
||||
add_library(${LIB_CSP_NAME})
|
||||
|
||||
add_subdirectory(src)
|
||||
add_subdirectory(include)
|
||||
|
||||
target_include_directories(${LIB_CSP_NAME} PRIVATE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
7
libcsp/include/CMakeLists.txt
Normal file
7
libcsp/include/CMakeLists.txt
Normal file
@ -0,0 +1,7 @@
|
||||
target_include_directories(${LIB_CSP_NAME} PRIVATE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/csp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/csp/crypto
|
||||
)
|
||||
|
||||
|
25
libcsp/src/CMakeLists.txt
Normal file
25
libcsp/src/CMakeLists.txt
Normal 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)
|
||||
|
9
libcsp/src/arch/posix/CMakeLists.txt
Normal file
9
libcsp/src/arch/posix/CMakeLists.txt
Normal 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
|
||||
)
|
5
libcsp/src/crypto/CMakeLists.txt
Normal file
5
libcsp/src/crypto/CMakeLists.txt
Normal file
@ -0,0 +1,5 @@
|
||||
target_sources(${LIB_CSP_NAME} PRIVATE
|
||||
csp_hmac.c
|
||||
csp_sha1.c
|
||||
csp_xtea.c
|
||||
)
|
1
libcsp/src/drivers/CMakeLists.txt
Normal file
1
libcsp/src/drivers/CMakeLists.txt
Normal file
@ -0,0 +1 @@
|
||||
add_subdirectory(can)
|
3
libcsp/src/drivers/can/CMakeLists.txt
Normal file
3
libcsp/src/drivers/can/CMakeLists.txt
Normal file
@ -0,0 +1,3 @@
|
||||
target_sources(${LIB_CSP_NAME} PRIVATE
|
||||
can_socketcan.c
|
||||
)
|
7
libcsp/src/interfaces/CMakeLists.txt
Normal file
7
libcsp/src/interfaces/CMakeLists.txt
Normal 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
|
||||
)
|
3
libcsp/src/rtable/CMakeLists.txt
Normal file
3
libcsp/src/rtable/CMakeLists.txt
Normal file
@ -0,0 +1,3 @@
|
||||
target_sources(${LIB_CSP_NAME} PRIVATE
|
||||
csp_rtable_cidr.c
|
||||
)
|
4
libcsp/src/transport/CMakeLists.txt
Normal file
4
libcsp/src/transport/CMakeLists.txt
Normal file
@ -0,0 +1,4 @@
|
||||
target_sources(${LIB_CSP_NAME} PRIVATE
|
||||
csp_rdp.c
|
||||
csp_udp.c
|
||||
)
|
Reference in New Issue
Block a user