2019-10-26 16:53:43 +02:00
|
|
|
project(STM32_USB_Device_Library)
|
|
|
|
|
|
|
|
set(SOURCES
|
|
|
|
Core/Inc/usbd_def.h
|
|
|
|
Core/Inc/usbd_ctlreq.h
|
|
|
|
Core/Src/usbd_ctlreq.c
|
|
|
|
Core/Inc/usbd_ioreq.h
|
|
|
|
Core/Src/usbd_ioreq.c
|
2022-01-05 14:04:59 -08:00
|
|
|
Core/Inc/usbd_core.h
|
2019-10-26 16:53:43 +02:00
|
|
|
Core/Src/usbd_core.c
|
|
|
|
)
|
|
|
|
|
|
|
|
set(INCLUDE_DIRS
|
|
|
|
Core/Inc/
|
|
|
|
config/
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(STM32_USB_Device_Library_STM32F042x6 STATIC ${SOURCES})
|
|
|
|
target_include_directories(STM32_USB_Device_Library_STM32F042x6 PUBLIC ${INCLUDE_DIRS})
|
2022-01-06 17:38:41 -05:00
|
|
|
target_compile_options(STM32_USB_Device_Library_STM32F042x6 PRIVATE ${CPUFLAGS_F0} -Wno-unused-parameter -DSTM32F0)
|
2019-10-26 16:53:43 +02:00
|
|
|
target_link_libraries(STM32_USB_Device_Library_STM32F042x6 PRIVATE STM32_HAL_STM32F042x6)
|
2022-01-05 14:04:59 -08:00
|
|
|
|
2019-10-26 16:53:43 +02:00
|
|
|
add_library(STM32_USB_Device_Library_STM32F072xB STATIC ${SOURCES})
|
|
|
|
target_include_directories(STM32_USB_Device_Library_STM32F072xB PUBLIC ${INCLUDE_DIRS})
|
2022-01-06 17:38:41 -05:00
|
|
|
target_compile_options(STM32_USB_Device_Library_STM32F072xB PRIVATE ${CPUFLAGS_F0} -Wno-unused-parameter -DSTM32F0)
|
2019-10-26 16:53:43 +02:00
|
|
|
target_link_libraries(STM32_USB_Device_Library_STM32F072xB PRIVATE STM32_HAL_STM32F072xB)
|
2022-01-05 14:04:59 -08:00
|
|
|
|
|
|
|
add_library(STM32_USB_Device_Library_STM32F407xE STATIC ${SOURCES})
|
|
|
|
target_include_directories(STM32_USB_Device_Library_STM32F407xE PUBLIC ${INCLUDE_DIRS})
|
2022-01-06 17:38:41 -05:00
|
|
|
target_compile_options(STM32_USB_Device_Library_STM32F407xE PRIVATE ${CPUFLAGS_F4} -Wno-unused-parameter -DSTM32F4)
|
2022-01-05 14:04:59 -08:00
|
|
|
target_link_libraries(STM32_USB_Device_Library_STM32F407xE PRIVATE STM32_HAL_STM32F407xE)
|
2022-10-31 21:51:17 -04:00
|
|
|
|
|
|
|
add_library(STM32_USB_Device_Library_STM32G0B1xK STATIC ${SOURCES})
|
|
|
|
target_include_directories(STM32_USB_Device_Library_STM32G0B1xK PUBLIC ${INCLUDE_DIRS})
|
|
|
|
target_compile_options(STM32_USB_Device_Library_STM32G0B1xK PRIVATE ${CPUFLAGS_G0} -Wno-unused-parameter -DSTM32G0)
|
|
|
|
target_link_libraries(STM32_USB_Device_Library_STM32G0B1xK PRIVATE STM32_HAL_STM32G0B1xK)
|