added missing shared libs

This commit is contained in:
jakeg00dwin 2024-12-06 21:58:54 -08:00
parent 629a634a3e
commit 272eed6304
1 changed files with 41 additions and 18 deletions

View File

@ -12,117 +12,140 @@
add_library(ch32v20x_adc SHARED add_library(ch32v20x_adc SHARED
src/ch32v20x_adc.c src/ch32v20x_adc.c
) )
target_include_directories(ch32v20x_adc PUBLIC ./inc) target_include_directories(ch32v20x_adc PUBLIC ./inc)
add_library(ch32v20x_xxx SHARED add_library(ch32v20x_xxx SHARED
src/ch32v20x_xxx.c src/ch32v20x_xxx.c
) )
target_include_directories(ch32v20x_xxx PUBLIC ./inc) target_include_directories(ch32v20x_xxx PUBLIC ./inc)
add_library(ch32v20x_can SHARED add_library(ch32v20x_can SHARED
src/ch32v20x_can.c src/ch32v20x_can.c
) )
target_include_directories(ch32v20x_can PUBLIC ./inc) target_include_directories(ch32v20x_can PUBLIC ./inc)
add_library(ch32v20x_dbgmcu SHARED add_library(ch32v20x_dbgmcu SHARED
src/ch32v20x_dbgmcu.c src/ch32v20x_dbgmcu.c
) )
target_include_directories(ch32v20x_dbgmcu PUBLIC ./inc) target_include_directories(ch32v20x_dbgmcu PUBLIC ./inc)
add_library(ch32v20x_exti SHARED add_library(ch32v20x_exti SHARED
src/ch32v20x_exti.c src/ch32v20x_exti.c
) )
target_include_directories(ch32v20x_exti PUBLIC ./inc) target_include_directories(ch32v20x_exti PUBLIC ./inc)
add_library(ch32v20x_gpio SHARED add_library(ch32v20x_gpio SHARED
src/ch32v20x_gpio.c src/ch32v20x_gpio.c
) )
target_include_directories(ch32v20x_gpio PUBLIC ./inc) target_include_directories(ch32v20x_gpio PUBLIC ./inc)
add_library(ch32v20x_i2c SHARED add_library(ch32v20x_i2c SHARED
src/ch32v20x_i2c.c src/ch32v20x_i2c.c
) )
target_include_directories(ch32v20x_i2c PUBLIC ./inc) target_include_directories(ch32v20x_i2c PUBLIC ./inc)
add_library(ch32v20x_misc SHARED add_library(ch32v20x_misc SHARED
src/ch32v20x_misc.c src/ch32v20x_misc.c
) )
target_include_directories(ch32v20x_misc PUBLIC ./inc) target_include_directories(ch32v20x_misc PUBLIC ./inc)
add_library(ch32v20x_pwr SHARED add_library(ch32v20x_pwr SHARED
src/ch32v20x_pwr.c src/ch32v20x_pwr.c
) )
target_include_directories(ch32v20x_pwr PUBLIC ./inc) target_include_directories(ch32v20x_pwr PUBLIC ./inc)
add_library(ch32v20x_rtc SHARED add_library(ch32v20x_rtc SHARED
src/ch32v20x_rtc.c src/ch32v20x_rtc.c
) )
target_include_directories(ch32v20x_rtc PUBLIC ./inc) target_include_directories(ch32v20x_rtc PUBLIC ./inc)
add_library(ch32v20x_tim SHARED add_library(ch32v20x_tim SHARED
src/ch32v20x_tim.c src/ch32v20x_tim.c
) )
target_include_directories(ch32v20x_tim PUBLIC ./inc) target_include_directories(ch32v20x_tim PUBLIC ./inc)
add_library(ch32v20x_usb SHARED add_library(ch32v20x_usb SHARED
src/ch32v20x_usb.c src/ch32v20x_usb.c
) )
target_include_directories(ch32v20x_usb PUBLIC ./inc) target_include_directories(ch32v20x_usb PUBLIC ./inc)
add_library(ch32v20x_bkp SHARED add_library(ch32v20x_bkp SHARED
src/ch32v20x_bkp.c src/ch32v20x_bkp.c
) )
target_include_directories(ch32v20x_bkp PUBLIC ./inc) target_include_directories(ch32v20x_bkp PUBLIC ./inc)
add_library(ch32v20x_crc SHARED add_library(ch32v20x_crc SHARED
src/ch32v20x_crc.c src/ch32v20x_crc.c
) )
target_include_directories(ch32v20x_crc PUBLIC ./inc) target_include_directories(ch32v20x_crc PUBLIC ./inc)
add_library(ch32v20x_dma SHARED add_library(ch32v20x_dma SHARED
src/ch32v20x_dma.c src/ch32v20x_dma.c
) )
target_include_directories(ch32v20x_dma PUBLIC ./inc) target_include_directories(ch32v20x_dma PUBLIC ./inc)
add_library(ch32v20x_flash SHARED add_library(ch32v20x_flash SHARED
src/ch32v20x_flash.c src/ch32v20x_flash.c
) )
target_include_directories(ch32v20x_flash PUBLIC ./inc) target_include_directories(ch32v20x_flash PUBLIC ./inc)
add_library(ch32v20x SHARED add_library(ch32v20x_flash SHARED
src/ch32v20x.c src/ch32v20x_flash.c
) )
add_library(ch32v20x_iwdg SHARED
src/ch32v20x_iwdg.c
)
target_include_directories(ch32v20x_iwdg PUBLIC ./inc)
add_library(ch32v20x_opa SHARED
src/ch32v20x_opa.c
)
target_include_directories(ch32v20x_opa PUBLIC ./inc)
add_library(ch32v20x_rcc SHARED
src/ch32v20x_rcc.c
)
target_include_directories(ch32v20x_rcc PUBLIC ./inc)
add_library(ch32v20x_spi SHARED
src/ch32v20x_spi.c
)
target_include_directories(ch32v20x_spi PUBLIC ./inc)
add_library(ch32v20x_usart SHARED
src/ch32v20x_usart.c
)
target_include_directories(ch32v20x_usart PUBLIC ./inc)
add_library(ch32v20x_wwdg SHARED
src/ch32v20x_wwdg.c
)
target_include_directories(ch32v20x_wwdg PUBLIC ./inc)
# This one doesn't have source code. # This one doesn't have source code.
#target_include_directories(ch32v20x PUBLIC ./inc) #target_include_directories(ch32v20x PUBLIC ./inc)
# #