289 lines
13 KiB
CMake
289 lines
13 KiB
CMake
# components.cmake
|
|
|
|
# component ARM::CMSIS:CORE@4.3.0
|
|
add_library(ARM_CMSIS_CORE_4_3_0 INTERFACE)
|
|
target_include_directories(ARM_CMSIS_CORE_4_3_0 INTERFACE
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_INCLUDE_DIRECTORIES>
|
|
"${CMSIS_PACK_ROOT}/ARM/CMSIS/4.5.0/CMSIS/Include"
|
|
)
|
|
target_compile_definitions(ARM_CMSIS_CORE_4_3_0 INTERFACE
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_DEFINITIONS>
|
|
)
|
|
target_link_libraries(ARM_CMSIS_CORE_4_3_0 INTERFACE
|
|
${CONTEXT}_ABSTRACTIONS
|
|
)
|
|
|
|
# component GigaDevice::Device:EVAL:GD32C10x@1.0.0
|
|
add_library(GigaDevice_Device_EVAL_GD32C10x_1_0_0 OBJECT
|
|
"${SOLUTION_ROOT}/Robot_V2/RTE/Device/GD32C103CB/gd32c10x_eval.c"
|
|
)
|
|
target_include_directories(GigaDevice_Device_EVAL_GD32C10x_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_INCLUDE_DIRECTORIES>
|
|
"${CMSIS_PACK_ROOT}/GigaDevice/GD32C10x_DFP/1.0.1/Device/Utilities"
|
|
)
|
|
target_compile_definitions(GigaDevice_Device_EVAL_GD32C10x_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_DEFINITIONS>
|
|
)
|
|
target_compile_options(GigaDevice_Device_EVAL_GD32C10x_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_OPTIONS>
|
|
)
|
|
target_link_libraries(GigaDevice_Device_EVAL_GD32C10x_1_0_0 PUBLIC
|
|
${CONTEXT}_ABSTRACTIONS
|
|
)
|
|
|
|
# component GigaDevice::Device:GD32C10x_StdPeripherals:CAN@1.0.0
|
|
add_library(GigaDevice_Device_GD32C10x_StdPeripherals_CAN_1_0_0 OBJECT
|
|
"${SOLUTION_ROOT}/Robot_V2/RTE/Device/GD32C103CB/gd32c10x_can.c"
|
|
)
|
|
target_include_directories(GigaDevice_Device_GD32C10x_StdPeripherals_CAN_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_INCLUDE_DIRECTORIES>
|
|
"${CMSIS_PACK_ROOT}/GigaDevice/GD32C10x_DFP/1.0.1/Device/Firmware/Peripherals/inc"
|
|
)
|
|
target_compile_definitions(GigaDevice_Device_GD32C10x_StdPeripherals_CAN_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_DEFINITIONS>
|
|
)
|
|
target_compile_options(GigaDevice_Device_GD32C10x_StdPeripherals_CAN_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_OPTIONS>
|
|
)
|
|
target_link_libraries(GigaDevice_Device_GD32C10x_StdPeripherals_CAN_1_0_0 PUBLIC
|
|
${CONTEXT}_ABSTRACTIONS
|
|
)
|
|
|
|
# component GigaDevice::Device:GD32C10x_StdPeripherals:CRC@1.0.0
|
|
add_library(GigaDevice_Device_GD32C10x_StdPeripherals_CRC_1_0_0 OBJECT
|
|
"${SOLUTION_ROOT}/Robot_V2/RTE/Device/GD32C103CB/gd32c10x_crc.c"
|
|
)
|
|
target_include_directories(GigaDevice_Device_GD32C10x_StdPeripherals_CRC_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_INCLUDE_DIRECTORIES>
|
|
"${CMSIS_PACK_ROOT}/GigaDevice/GD32C10x_DFP/1.0.1/Device/Firmware/Peripherals/inc"
|
|
)
|
|
target_compile_definitions(GigaDevice_Device_GD32C10x_StdPeripherals_CRC_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_DEFINITIONS>
|
|
)
|
|
target_compile_options(GigaDevice_Device_GD32C10x_StdPeripherals_CRC_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_OPTIONS>
|
|
)
|
|
target_link_libraries(GigaDevice_Device_GD32C10x_StdPeripherals_CRC_1_0_0 PUBLIC
|
|
${CONTEXT}_ABSTRACTIONS
|
|
)
|
|
|
|
# component GigaDevice::Device:GD32C10x_StdPeripherals:DBG@1.0.0
|
|
add_library(GigaDevice_Device_GD32C10x_StdPeripherals_DBG_1_0_0 OBJECT
|
|
"${SOLUTION_ROOT}/Robot_V2/RTE/Device/GD32C103CB/gd32c10x_dbg.c"
|
|
)
|
|
target_include_directories(GigaDevice_Device_GD32C10x_StdPeripherals_DBG_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_INCLUDE_DIRECTORIES>
|
|
"${CMSIS_PACK_ROOT}/GigaDevice/GD32C10x_DFP/1.0.1/Device/Firmware/Peripherals/inc"
|
|
)
|
|
target_compile_definitions(GigaDevice_Device_GD32C10x_StdPeripherals_DBG_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_DEFINITIONS>
|
|
)
|
|
target_compile_options(GigaDevice_Device_GD32C10x_StdPeripherals_DBG_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_OPTIONS>
|
|
)
|
|
target_link_libraries(GigaDevice_Device_GD32C10x_StdPeripherals_DBG_1_0_0 PUBLIC
|
|
${CONTEXT}_ABSTRACTIONS
|
|
)
|
|
|
|
# component GigaDevice::Device:GD32C10x_StdPeripherals:DMA@1.0.0
|
|
add_library(GigaDevice_Device_GD32C10x_StdPeripherals_DMA_1_0_0 OBJECT
|
|
"${SOLUTION_ROOT}/Robot_V2/RTE/Device/GD32C103CB/gd32c10x_dma.c"
|
|
)
|
|
target_include_directories(GigaDevice_Device_GD32C10x_StdPeripherals_DMA_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_INCLUDE_DIRECTORIES>
|
|
"${CMSIS_PACK_ROOT}/GigaDevice/GD32C10x_DFP/1.0.1/Device/Firmware/Peripherals/inc"
|
|
)
|
|
target_compile_definitions(GigaDevice_Device_GD32C10x_StdPeripherals_DMA_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_DEFINITIONS>
|
|
)
|
|
target_compile_options(GigaDevice_Device_GD32C10x_StdPeripherals_DMA_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_OPTIONS>
|
|
)
|
|
target_link_libraries(GigaDevice_Device_GD32C10x_StdPeripherals_DMA_1_0_0 PUBLIC
|
|
${CONTEXT}_ABSTRACTIONS
|
|
)
|
|
|
|
# component GigaDevice::Device:GD32C10x_StdPeripherals:EXTI@1.0.0
|
|
add_library(GigaDevice_Device_GD32C10x_StdPeripherals_EXTI_1_0_0 OBJECT
|
|
"${SOLUTION_ROOT}/Robot_V2/RTE/Device/GD32C103CB/gd32c10x_exti.c"
|
|
)
|
|
target_include_directories(GigaDevice_Device_GD32C10x_StdPeripherals_EXTI_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_INCLUDE_DIRECTORIES>
|
|
"${CMSIS_PACK_ROOT}/GigaDevice/GD32C10x_DFP/1.0.1/Device/Firmware/Peripherals/inc"
|
|
)
|
|
target_compile_definitions(GigaDevice_Device_GD32C10x_StdPeripherals_EXTI_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_DEFINITIONS>
|
|
)
|
|
target_compile_options(GigaDevice_Device_GD32C10x_StdPeripherals_EXTI_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_OPTIONS>
|
|
)
|
|
target_link_libraries(GigaDevice_Device_GD32C10x_StdPeripherals_EXTI_1_0_0 PUBLIC
|
|
${CONTEXT}_ABSTRACTIONS
|
|
)
|
|
|
|
# component GigaDevice::Device:GD32C10x_StdPeripherals:FMC@1.0.0
|
|
add_library(GigaDevice_Device_GD32C10x_StdPeripherals_FMC_1_0_0 OBJECT
|
|
"${SOLUTION_ROOT}/Robot_V2/RTE/Device/GD32C103CB/gd32c10x_fmc.c"
|
|
)
|
|
target_include_directories(GigaDevice_Device_GD32C10x_StdPeripherals_FMC_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_INCLUDE_DIRECTORIES>
|
|
"${CMSIS_PACK_ROOT}/GigaDevice/GD32C10x_DFP/1.0.1/Device/Firmware/Peripherals/inc"
|
|
)
|
|
target_compile_definitions(GigaDevice_Device_GD32C10x_StdPeripherals_FMC_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_DEFINITIONS>
|
|
)
|
|
target_compile_options(GigaDevice_Device_GD32C10x_StdPeripherals_FMC_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_OPTIONS>
|
|
)
|
|
target_link_libraries(GigaDevice_Device_GD32C10x_StdPeripherals_FMC_1_0_0 PUBLIC
|
|
${CONTEXT}_ABSTRACTIONS
|
|
)
|
|
|
|
# component GigaDevice::Device:GD32C10x_StdPeripherals:FWDGT@1.0.0
|
|
add_library(GigaDevice_Device_GD32C10x_StdPeripherals_FWDGT_1_0_0 OBJECT
|
|
"${SOLUTION_ROOT}/Robot_V2/RTE/Device/GD32C103CB/gd32c10x_fwdgt.c"
|
|
)
|
|
target_include_directories(GigaDevice_Device_GD32C10x_StdPeripherals_FWDGT_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_INCLUDE_DIRECTORIES>
|
|
"${CMSIS_PACK_ROOT}/GigaDevice/GD32C10x_DFP/1.0.1/Device/Firmware/Peripherals/inc"
|
|
)
|
|
target_compile_definitions(GigaDevice_Device_GD32C10x_StdPeripherals_FWDGT_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_DEFINITIONS>
|
|
)
|
|
target_compile_options(GigaDevice_Device_GD32C10x_StdPeripherals_FWDGT_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_OPTIONS>
|
|
)
|
|
target_link_libraries(GigaDevice_Device_GD32C10x_StdPeripherals_FWDGT_1_0_0 PUBLIC
|
|
${CONTEXT}_ABSTRACTIONS
|
|
)
|
|
|
|
# component GigaDevice::Device:GD32C10x_StdPeripherals:GPIO@1.0.0
|
|
add_library(GigaDevice_Device_GD32C10x_StdPeripherals_GPIO_1_0_0 OBJECT
|
|
"${SOLUTION_ROOT}/Robot_V2/RTE/Device/GD32C103CB/gd32c10x_gpio.c"
|
|
)
|
|
target_include_directories(GigaDevice_Device_GD32C10x_StdPeripherals_GPIO_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_INCLUDE_DIRECTORIES>
|
|
"${CMSIS_PACK_ROOT}/GigaDevice/GD32C10x_DFP/1.0.1/Device/Firmware/Peripherals/inc"
|
|
)
|
|
target_compile_definitions(GigaDevice_Device_GD32C10x_StdPeripherals_GPIO_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_DEFINITIONS>
|
|
)
|
|
target_compile_options(GigaDevice_Device_GD32C10x_StdPeripherals_GPIO_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_OPTIONS>
|
|
)
|
|
target_link_libraries(GigaDevice_Device_GD32C10x_StdPeripherals_GPIO_1_0_0 PUBLIC
|
|
${CONTEXT}_ABSTRACTIONS
|
|
)
|
|
|
|
# component GigaDevice::Device:GD32C10x_StdPeripherals:MISC@1.0.0
|
|
add_library(GigaDevice_Device_GD32C10x_StdPeripherals_MISC_1_0_0 OBJECT
|
|
"${SOLUTION_ROOT}/Robot_V2/RTE/Device/GD32C103CB/gd32c10x_misc.c"
|
|
)
|
|
target_include_directories(GigaDevice_Device_GD32C10x_StdPeripherals_MISC_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_INCLUDE_DIRECTORIES>
|
|
"${CMSIS_PACK_ROOT}/GigaDevice/GD32C10x_DFP/1.0.1/Device/Firmware/Peripherals/inc"
|
|
)
|
|
target_compile_definitions(GigaDevice_Device_GD32C10x_StdPeripherals_MISC_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_DEFINITIONS>
|
|
)
|
|
target_compile_options(GigaDevice_Device_GD32C10x_StdPeripherals_MISC_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_OPTIONS>
|
|
)
|
|
target_link_libraries(GigaDevice_Device_GD32C10x_StdPeripherals_MISC_1_0_0 PUBLIC
|
|
${CONTEXT}_ABSTRACTIONS
|
|
)
|
|
|
|
# component GigaDevice::Device:GD32C10x_StdPeripherals:PMU@1.0.0
|
|
add_library(GigaDevice_Device_GD32C10x_StdPeripherals_PMU_1_0_0 OBJECT
|
|
"${SOLUTION_ROOT}/Robot_V2/RTE/Device/GD32C103CB/gd32c10x_pmu.c"
|
|
)
|
|
target_include_directories(GigaDevice_Device_GD32C10x_StdPeripherals_PMU_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_INCLUDE_DIRECTORIES>
|
|
"${CMSIS_PACK_ROOT}/GigaDevice/GD32C10x_DFP/1.0.1/Device/Firmware/Peripherals/inc"
|
|
)
|
|
target_compile_definitions(GigaDevice_Device_GD32C10x_StdPeripherals_PMU_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_DEFINITIONS>
|
|
)
|
|
target_compile_options(GigaDevice_Device_GD32C10x_StdPeripherals_PMU_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_OPTIONS>
|
|
)
|
|
target_link_libraries(GigaDevice_Device_GD32C10x_StdPeripherals_PMU_1_0_0 PUBLIC
|
|
${CONTEXT}_ABSTRACTIONS
|
|
)
|
|
|
|
# component GigaDevice::Device:GD32C10x_StdPeripherals:RCU@1.0.0
|
|
add_library(GigaDevice_Device_GD32C10x_StdPeripherals_RCU_1_0_0 OBJECT
|
|
"${SOLUTION_ROOT}/Robot_V2/RTE/Device/GD32C103CB/gd32c10x_rcu.c"
|
|
)
|
|
target_include_directories(GigaDevice_Device_GD32C10x_StdPeripherals_RCU_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_INCLUDE_DIRECTORIES>
|
|
"${CMSIS_PACK_ROOT}/GigaDevice/GD32C10x_DFP/1.0.1/Device/Firmware/Peripherals/inc"
|
|
)
|
|
target_compile_definitions(GigaDevice_Device_GD32C10x_StdPeripherals_RCU_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_DEFINITIONS>
|
|
)
|
|
target_compile_options(GigaDevice_Device_GD32C10x_StdPeripherals_RCU_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_OPTIONS>
|
|
)
|
|
target_link_libraries(GigaDevice_Device_GD32C10x_StdPeripherals_RCU_1_0_0 PUBLIC
|
|
${CONTEXT}_ABSTRACTIONS
|
|
)
|
|
|
|
# component GigaDevice::Device:GD32C10x_StdPeripherals:USART@1.0.0
|
|
add_library(GigaDevice_Device_GD32C10x_StdPeripherals_USART_1_0_0 OBJECT
|
|
"${SOLUTION_ROOT}/Robot_V2/RTE/Device/GD32C103CB/gd32c10x_usart.c"
|
|
)
|
|
target_include_directories(GigaDevice_Device_GD32C10x_StdPeripherals_USART_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_INCLUDE_DIRECTORIES>
|
|
"${CMSIS_PACK_ROOT}/GigaDevice/GD32C10x_DFP/1.0.1/Device/Firmware/Peripherals/inc"
|
|
)
|
|
target_compile_definitions(GigaDevice_Device_GD32C10x_StdPeripherals_USART_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_DEFINITIONS>
|
|
)
|
|
target_compile_options(GigaDevice_Device_GD32C10x_StdPeripherals_USART_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_OPTIONS>
|
|
)
|
|
target_link_libraries(GigaDevice_Device_GD32C10x_StdPeripherals_USART_1_0_0 PUBLIC
|
|
${CONTEXT}_ABSTRACTIONS
|
|
)
|
|
|
|
# component GigaDevice::Device:GD32C10x_libopt@1.0.0
|
|
add_library(GigaDevice_Device_GD32C10x_libopt_1_0_0 INTERFACE)
|
|
target_include_directories(GigaDevice_Device_GD32C10x_libopt_1_0_0 INTERFACE
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_INCLUDE_DIRECTORIES>
|
|
"${CMSIS_PACK_ROOT}/GigaDevice/GD32C10x_DFP/1.0.1/Device/Include"
|
|
)
|
|
target_compile_definitions(GigaDevice_Device_GD32C10x_libopt_1_0_0 INTERFACE
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_DEFINITIONS>
|
|
)
|
|
target_link_libraries(GigaDevice_Device_GD32C10x_libopt_1_0_0 INTERFACE
|
|
${CONTEXT}_ABSTRACTIONS
|
|
)
|
|
|
|
# component GigaDevice::Device:Startup@1.0.0
|
|
add_library(GigaDevice_Device_Startup_1_0_0 OBJECT
|
|
"${SOLUTION_ROOT}/Robot_V2/RTE/Device/GD32C103CB/startup_gd32c10x.s"
|
|
"${SOLUTION_ROOT}/Robot_V2/RTE/Device/GD32C103CB/system_gd32c10x.c"
|
|
)
|
|
target_include_directories(GigaDevice_Device_Startup_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_INCLUDE_DIRECTORIES>
|
|
"${CMSIS_PACK_ROOT}/GigaDevice/GD32C10x_DFP/1.0.1/Device/Include"
|
|
)
|
|
target_compile_definitions(GigaDevice_Device_Startup_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_DEFINITIONS>
|
|
)
|
|
target_compile_options(GigaDevice_Device_Startup_1_0_0 PUBLIC
|
|
$<TARGET_PROPERTY:${CONTEXT},INTERFACE_COMPILE_OPTIONS>
|
|
)
|
|
target_link_libraries(GigaDevice_Device_Startup_1_0_0 PUBLIC
|
|
${CONTEXT}_ABSTRACTIONS
|
|
)
|
|
set(COMPILE_DEFINITIONS
|
|
GD32C10x
|
|
_RTE_
|
|
)
|
|
cbuild_set_defines(AS_ARM COMPILE_DEFINITIONS)
|
|
set_source_files_properties("${SOLUTION_ROOT}/Robot_V2/RTE/Device/GD32C103CB/startup_gd32c10x.s" PROPERTIES
|
|
COMPILE_FLAGS "${COMPILE_DEFINITIONS}"
|
|
)
|