EV5_HW_Ontwikkeling/cmake/st-project.cmake
2024-01-23 14:43:02 +01:00

139 lines
6.8 KiB
CMake

# THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
# BASED ON c:\Users\User\Documents\Git\HW_Ont_sem5
function(add_st_target_properties TARGET_NAME)
target_compile_definitions(
${TARGET_NAME} PRIVATE
"$<$<AND:$<CONFIG:Debug>,$<COMPILE_LANGUAGE:ASM>>:DEBUG>"
"$<$<AND:$<CONFIG:Debug>,$<COMPILE_LANGUAGE:C>>:DEBUG>"
"$<$<AND:$<CONFIG:Debug>,$<COMPILE_LANGUAGE:C>>:USE_HAL_DRIVER>"
"$<$<AND:$<CONFIG:Debug>,$<COMPILE_LANGUAGE:C>>:STM32F407xx>"
"$<$<AND:$<NOT:$<CONFIG:Debug>>,$<COMPILE_LANGUAGE:C>>:USE_HAL_DRIVER>"
"$<$<AND:$<NOT:$<CONFIG:Debug>>,$<COMPILE_LANGUAGE:C>>:STM32F407xx>"
)
target_include_directories(
${TARGET_NAME} PRIVATE
"$<$<AND:$<CONFIG:Debug>,$<COMPILE_LANGUAGE:C>>:${PROJECT_SOURCE_DIR}/USB_HOST\\App>"
"$<$<AND:$<CONFIG:Debug>,$<COMPILE_LANGUAGE:C>>:${PROJECT_SOURCE_DIR}/USB_HOST\\Target>"
"$<$<AND:$<CONFIG:Debug>,$<COMPILE_LANGUAGE:C>>:${PROJECT_SOURCE_DIR}/Core\\Inc>"
"$<$<AND:$<CONFIG:Debug>,$<COMPILE_LANGUAGE:C>>:${PROJECT_SOURCE_DIR}/Drivers\\STM32F4xx_HAL_Driver\\Inc>"
"$<$<AND:$<CONFIG:Debug>,$<COMPILE_LANGUAGE:C>>:${PROJECT_SOURCE_DIR}/Drivers\\STM32F4xx_HAL_Driver\\Inc\\Legacy>"
"$<$<AND:$<CONFIG:Debug>,$<COMPILE_LANGUAGE:C>>:${PROJECT_SOURCE_DIR}/Middlewares\\ST\\STM32_USB_Host_Library\\Core\\Inc>"
"$<$<AND:$<CONFIG:Debug>,$<COMPILE_LANGUAGE:C>>:${PROJECT_SOURCE_DIR}/Middlewares\\ST\\STM32_USB_Host_Library\\Class\\CDC\\Inc>"
"$<$<AND:$<CONFIG:Debug>,$<COMPILE_LANGUAGE:C>>:${PROJECT_SOURCE_DIR}/Drivers\\CMSIS\\Device\\ST\\STM32F4xx\\Include>"
"$<$<AND:$<CONFIG:Debug>,$<COMPILE_LANGUAGE:C>>:${PROJECT_SOURCE_DIR}/Drivers\\CMSIS\\Include>"
"$<$<AND:$<NOT:$<CONFIG:Debug>>,$<COMPILE_LANGUAGE:C>>:${PROJECT_SOURCE_DIR}/USB_HOST\\App>"
"$<$<AND:$<NOT:$<CONFIG:Debug>>,$<COMPILE_LANGUAGE:C>>:${PROJECT_SOURCE_DIR}/USB_HOST\\Target>"
"$<$<AND:$<NOT:$<CONFIG:Debug>>,$<COMPILE_LANGUAGE:C>>:${PROJECT_SOURCE_DIR}/Core\\Inc>"
"$<$<AND:$<NOT:$<CONFIG:Debug>>,$<COMPILE_LANGUAGE:C>>:${PROJECT_SOURCE_DIR}/Drivers\\STM32F4xx_HAL_Driver\\Inc>"
"$<$<AND:$<NOT:$<CONFIG:Debug>>,$<COMPILE_LANGUAGE:C>>:${PROJECT_SOURCE_DIR}/Drivers\\STM32F4xx_HAL_Driver\\Inc\\Legacy>"
"$<$<AND:$<NOT:$<CONFIG:Debug>>,$<COMPILE_LANGUAGE:C>>:${PROJECT_SOURCE_DIR}/Middlewares\\ST\\STM32_USB_Host_Library\\Core\\Inc>"
"$<$<AND:$<NOT:$<CONFIG:Debug>>,$<COMPILE_LANGUAGE:C>>:${PROJECT_SOURCE_DIR}/Middlewares\\ST\\STM32_USB_Host_Library\\Class\\CDC\\Inc>"
"$<$<AND:$<NOT:$<CONFIG:Debug>>,$<COMPILE_LANGUAGE:C>>:${PROJECT_SOURCE_DIR}/Drivers\\CMSIS\\Device\\ST\\STM32F4xx\\Include>"
"$<$<AND:$<NOT:$<CONFIG:Debug>>,$<COMPILE_LANGUAGE:C>>:${PROJECT_SOURCE_DIR}/Drivers\\CMSIS\\Include>"
)
target_compile_options(
${TARGET_NAME} PRIVATE
"$<$<AND:$<CONFIG:Debug>,$<COMPILE_LANGUAGE:ASM>>:-g3>"
"$<$<AND:$<CONFIG:Debug>,$<COMPILE_LANGUAGE:C>>:-g3>"
"$<$<AND:$<CONFIG:Debug>,$<COMPILE_LANGUAGE:CXX>>:-g3>"
"$<$<AND:$<NOT:$<CONFIG:Debug>>,$<COMPILE_LANGUAGE:ASM>>:-g0>"
"$<$<AND:$<NOT:$<CONFIG:Debug>>,$<COMPILE_LANGUAGE:C>>:-g0>"
"$<$<AND:$<NOT:$<CONFIG:Debug>>,$<COMPILE_LANGUAGE:CXX>>:-g0>"
"$<$<AND:$<NOT:$<CONFIG:Debug>>,$<COMPILE_LANGUAGE:C>>:-Os>"
"$<$<AND:$<NOT:$<CONFIG:Debug>>,$<COMPILE_LANGUAGE:CXX>>:-Os>"
"$<$<AND:$<CONFIG:Debug>,$<COMPILE_LANGUAGE:C>>:>"
"$<$<AND:$<CONFIG:Debug>,$<COMPILE_LANGUAGE:CXX>>:>"
"$<$<AND:$<NOT:$<CONFIG:Debug>>,$<COMPILE_LANGUAGE:C>>:>"
"$<$<AND:$<NOT:$<CONFIG:Debug>>,$<COMPILE_LANGUAGE:CXX>>:>"
"$<$<CONFIG:Debug>:-mcpu=cortex-m4>"
"$<$<CONFIG:Debug>:-mfpu=fpv4-sp-d16>"
"$<$<CONFIG:Debug>:-mfloat-abi=hard>"
"$<$<NOT:$<CONFIG:Debug>>:-mcpu=cortex-m4>"
"$<$<NOT:$<CONFIG:Debug>>:-mfpu=fpv4-sp-d16>"
"$<$<NOT:$<CONFIG:Debug>>:-mfloat-abi=hard>"
)
target_link_libraries(
${TARGET_NAME} PRIVATE
)
target_link_directories(
${TARGET_NAME} PRIVATE
)
target_link_options(
${TARGET_NAME} PRIVATE
"$<$<CONFIG:Debug>:-mcpu=cortex-m4>"
"$<$<CONFIG:Debug>:-mfpu=fpv4-sp-d16>"
"$<$<CONFIG:Debug>:-mfloat-abi=hard>"
"$<$<NOT:$<CONFIG:Debug>>:-mcpu=cortex-m4>"
"$<$<NOT:$<CONFIG:Debug>>:-mfpu=fpv4-sp-d16>"
"$<$<NOT:$<CONFIG:Debug>>:-mfloat-abi=hard>"
-T
"$<$<CONFIG:Debug>:${PROJECT_SOURCE_DIR}/STM32F407VGTX_FLASH.ld>"
"$<$<NOT:$<CONFIG:Debug>>:${PROJECT_SOURCE_DIR}/STM32F407VGTX_FLASH.ld>"
)
target_sources(
${TARGET_NAME} PRIVATE
"USB_HOST\\App\\usb_host.c"
"USB_HOST\\Target\\usbh_conf.c"
"USB_HOST\\Target\\usbh_platform.c"
"Core\\Src\\main.c"
"Core\\Src\\stm32f4xx_hal_msp.c"
"Core\\Src\\stm32f4xx_it.c"
"Core\\Src\\syscalls.c"
"Core\\Src\\sysmem.c"
"Core\\Src\\system_stm32f4xx.c"
"Core\\Startup\\startup_stm32f407vgtx.s"
"Middlewares\\ST\\STM32_USB_Host_Library\\Class\\CDC\\Src\\usbh_cdc.c"
"Middlewares\\ST\\STM32_USB_Host_Library\\Core\\Src\\usbh_core.c"
"Middlewares\\ST\\STM32_USB_Host_Library\\Core\\Src\\usbh_ctlreq.c"
"Middlewares\\ST\\STM32_USB_Host_Library\\Core\\Src\\usbh_ioreq.c"
"Middlewares\\ST\\STM32_USB_Host_Library\\Core\\Src\\usbh_pipes.c"
"Drivers\\STM32F4xx_HAL_Driver\\Src\\stm32f4xx_hal_cortex.c"
"Drivers\\STM32F4xx_HAL_Driver\\Src\\stm32f4xx_hal_dma_ex.c"
"Drivers\\STM32F4xx_HAL_Driver\\Src\\stm32f4xx_hal_dma.c"
"Drivers\\STM32F4xx_HAL_Driver\\Src\\stm32f4xx_hal_exti.c"
"Drivers\\STM32F4xx_HAL_Driver\\Src\\stm32f4xx_hal_flash_ex.c"
"Drivers\\STM32F4xx_HAL_Driver\\Src\\stm32f4xx_hal_flash_ramfunc.c"
"Drivers\\STM32F4xx_HAL_Driver\\Src\\stm32f4xx_hal_flash.c"
"Drivers\\STM32F4xx_HAL_Driver\\Src\\stm32f4xx_hal_gpio.c"
"Drivers\\STM32F4xx_HAL_Driver\\Src\\stm32f4xx_hal_hcd.c"
"Drivers\\STM32F4xx_HAL_Driver\\Src\\stm32f4xx_hal_i2c_ex.c"
"Drivers\\STM32F4xx_HAL_Driver\\Src\\stm32f4xx_hal_i2c.c"
"Drivers\\STM32F4xx_HAL_Driver\\Src\\stm32f4xx_hal_i2s_ex.c"
"Drivers\\STM32F4xx_HAL_Driver\\Src\\stm32f4xx_hal_i2s.c"
"Drivers\\STM32F4xx_HAL_Driver\\Src\\stm32f4xx_hal_pwr_ex.c"
"Drivers\\STM32F4xx_HAL_Driver\\Src\\stm32f4xx_hal_pwr.c"
"Drivers\\STM32F4xx_HAL_Driver\\Src\\stm32f4xx_hal_rcc_ex.c"
"Drivers\\STM32F4xx_HAL_Driver\\Src\\stm32f4xx_hal_rcc.c"
"Drivers\\STM32F4xx_HAL_Driver\\Src\\stm32f4xx_hal_spi.c"
"Drivers\\STM32F4xx_HAL_Driver\\Src\\stm32f4xx_hal_tim_ex.c"
"Drivers\\STM32F4xx_HAL_Driver\\Src\\stm32f4xx_hal_tim.c"
"Drivers\\STM32F4xx_HAL_Driver\\Src\\stm32f4xx_hal.c"
"Drivers\\STM32F4xx_HAL_Driver\\Src\\stm32f4xx_ll_usb.c"
)
add_custom_command(
TARGET ${TARGET_NAME} POST_BUILD
COMMAND ${CMAKE_SIZE} $<TARGET_FILE:${TARGET_NAME}>
)
add_custom_command(
TARGET ${TARGET_NAME} POST_BUILD
COMMAND ${CMAKE_OBJCOPY} -O ihex
$<TARGET_FILE:${TARGET_NAME}> ${TARGET_NAME}.hex
)
add_custom_command(
TARGET ${TARGET_NAME} POST_BUILD
COMMAND ${CMAKE_OBJCOPY} -O binary
$<TARGET_FILE:${TARGET_NAME}> ${TARGET_NAME}.bin
)
endfunction()