INCLUDE_DIRECTORIES(
	inc
)

SET (STM32_LIB_SRC_FILES 
	src/cortexm3_macro.S
	src/stm32f10x_nvic.c
	src/stm32f10x_crc.c 
	src/stm32f10x_exti.c 
	src/stm32f10x_i2c.c 
	src/stm32f10x_rtc.c 
	src/stm32f10x_usart.c 
	src/stm32f10x_adc.c 
	src/stm32f10x_flash.c 
	src/stm32f10x_iwdg.c 
	src/stm32f10x_wwdg.c 
	src/stm32f10x_bkp.c 
	src/stm32f10x_dbgmcu.c 
	src/stm32f10x_pwr.c 
	src/stm32f10x_spi.c 
	src/stm32f10x_can.c 
	src/stm32f10x_dma.c 
	src/stm32f10x_gpio.c 
	src/stm32f10x_rcc.c 
	src/stm32f10x_tim.c
	src/stm32f10x_systick.c
) 

#trick to get cmake to compile our assembler source
SET_PROPERTY (SOURCE src/cortexm3_macro.S PROPERTY LANGUAGE C)

ADD_LIBRARY (stm32 STATIC ${STM32_LIB_SRC_FILES})
 
