CMake构建(STM32,GD32)的编译管理环境 一

  • 工程目录结构
    ├── CMakeLists.txt
    ├── Cortex-M3.cmake
    ├── inc
    ├── ldscripts
    │ └── STM32F103ZCTX_FLASH.ld
    ├── src
    │ ├── CMakeLists.txt
    │ └── ver.h
    ├── std_lib
    │ ├── CMakeLists.txt
    │ ├── CMSIS
    │ │ ├── core_cm3.c
    │ │ ├── core_cm3.h
    │ │ ├── gcc_startup
    │ │ │ └── startup_stm32f103zctx.s
    │ │ ├── stm32f10x_conf.h
    │ │ ├── stm32f10x.h
    │ │ ├── stm32f10x_it.c
    │ │ ├── stm32f10x_it.h
    │ │ ├── system_stm32f10x.c
    │ │ └── system_stm32f10x.h
    │ └── STM32F10x_StdPeriph_Driver
    │ ├── inc
    │ │ ├── misc.h
    │ │ ├── stm32f10x_adc.h
    │ │ ├── stm32f10x_bkp.h
    │ │ ├── stm32f10x_can.h
    │ │ ├── stm32f10x_cec.h
    │ │ ├── stm32f10x_crc.h
    │ │ ├── stm32f10x_dac.h
    │ │ ├── stm32f10x_dbgmcu.h
    │ │ ├── stm32f10x_dma.h
    │ │ ├── stm32f10x_exti.h
    │ │ ├── stm32f10x_flash.h
    │ │ ├── stm32f10x_fsmc.h
    │ │ ├── stm32f10x_gpio.h
    │ │ ├── stm32f10x_i2c.h
    │ │ ├── stm32f10x_iwdg.h
    │ │ ├── stm32f10x_pwr.h
    │ │ ├── stm32f10x_rcc.h
    │ │ ├── stm32f10x_rtc.h
    │ │ ├── stm32f10x_sdio.h
    │ │ ├── stm32f10x_spi.h
    │ │ ├── stm32f10x_tim.h
    │ │ ├── stm32f10x_usart.h
    │ │ └── stm32f10x_wwdg.h
    │ └── src
    │ ├── misc.c
    │ ├── stm32f10x_adc.c
    │ ├── stm32f10x_bkp.c
    │ ├── stm32f10x_can.c
    │ ├── stm32f10x_c

你可能感兴趣的:(CMake,cortex-M3,M4,stm32,单片机)