0
0
Fork 0

chore: Add cmake file for components

This commit is contained in:
windowsair 2020-01-26 16:29:52 +08:00
parent 8cfb843951
commit 822aa0b6ad
5 changed files with 10 additions and 1 deletions

View File

@ -1,6 +1,7 @@
# The following five lines of boilerplate have to be in your project's
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)
#set(COMPONENT_DIRS "${IDF_PATH}/components ${PROJECT_PATH}/components")
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(esp8266_dap)

View File

@ -0,0 +1,4 @@
set(COMPONENT_ADD_INCLUDEDIRS "config include")
set(COMPONENT_SRCS "./source/DAP.c ./source/DAP_vendor.c ./source/JTAG_DP.c ./source/SW_DP.c ./source/SWO.c")
register_component()

View File

@ -0,0 +1,4 @@
set(COMPONENT_ADD_INCLUDEDIRS ".")
set(COMPONENT_SRCS "MSOS20Descriptors.c USB_handle.c USBd_config.c")
register_component()

View File

@ -1,4 +1,4 @@
set(COMPONENT_SRCS "main.c timer.c tcp_server.c usbip_server.c DAP_handle.c")
set(COMPONENT_ADD_INCLUDEDIRS ". $ENV{IDF_PATH}/components/esp8266/include/esp8266/ ../components/USBIP")
set(COMPONENT_SRCS "main.c timer.c tcp_server.c usbip_server.c DAP_handle.c")
register_component()