You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
669 B
25 lines
669 B
set (STMSRC_INCLUDES
|
|
../Inc
|
|
)
|
|
|
|
set(STMSRC_SOURCES
|
|
stm32f0xx_csl.c
|
|
stm32f0xx_it.c
|
|
system_stm32f0xx.c)
|
|
|
|
add_library(stmSources ${STMSRC_SOURCES})
|
|
target_compile_options(stmSources PRIVATE ${C_FLAGS})
|
|
target_compile_definitions(stmSources PRIVATE ${C_DEFS})
|
|
target_include_directories(stmSources PUBLIC ${STMSRC_INCLUDES})
|
|
target_link_libraries(stmSources sub::drivers)
|
|
|
|
add_library(sub::sources ALIAS stmSources)
|
|
|
|
|
|
add_library(stmGpio gpio.cpp)
|
|
|
|
target_compile_options(stmGpio PRIVATE ${C_FLAGS})
|
|
target_compile_definitions(stmGpio PRIVATE ${C_DEFS})
|
|
target_include_directories(stmGpio PUBLIC ${INTERFACES_DIR} ${CSL_INCLUDES})
|
|
add_library(sub::gpio ALIAS stmGpio)
|