-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
79 lines (60 loc) · 1.55 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
add_library(usb_dev_cpp
src/descriptor/Configuration_descriptor.cpp
src/descriptor/Device_descriptor.cpp
src/descriptor/Endpoint_descriptor.cpp
src/descriptor/Interface_descriptor.cpp
src/descriptor/String_descriptor_base.cpp
src/class/usb_class.cpp
src/class/cdc/cdc.cpp
src/class/cdc/cdc_desc.cpp
src/class/cdc/cdc_mgmt_requests.cpp
src/class/cdc/cdc_notification.cpp
src/class/dfu/dfu.cpp
src/driver/usb_driver_base.cpp
src/core/Get_descriptor.cpp
src/core/Notification_packet.cpp
src/core/Request_type.cpp
src/core/Setup_packet.cpp
src/core/usb_core.cpp
src/util/Buffer_adapter.cpp
src/util/Desc_table_base.cpp
src/util/Config_desc_table.cpp
src/util/Iface_desc_table.cpp
src/util/String_desc_table.cpp
src/util/Descriptor_table.cpp
src/util/EP_buffer_array.cpp
src/util/EP_buffer_mgr_base.cpp
)
add_library(usb_dev_cpp_stm32
src/driver/cpu/Cortex_m7.cpp
src/class/cdc/cdc_usb.cpp
src/driver/stm32/stm32_h7xx_otghs.cpp
src/driver/stm32/stm32_h7xx_otghs2.cpp
src/util/EP_buffer_mgr_freertos.cpp
)
target_include_directories(usb_dev_cpp PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/include
)
target_link_libraries(usb_dev_cpp
common_util
freertos_cpp_util
)
target_link_libraries(usb_dev_cpp_stm32
usb_dev_cpp
stm32h750xx_cmsis
)
if(${BUILD_USB_DEV_CPP_TESTS})
add_library(usb_dev_cpp_tests
tests/descriptor/Endpoint_descriptor_tests.cpp
)
target_link_libraries(usb_dev_cpp_tests
usb_dev_cpp
googletest
)
endif(${BUILD_USB_DEV_CPP_TESTS})
if(DEFINED Doxygen::doxygen)
doxygen_add_docs(usb_dev_cpp_docs
include/
src/
)
endif()