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.
21 lines
545 B
21 lines
545 B
project(CSources)
|
|
|
|
set (C_INCLUDES
|
|
../Inc
|
|
../Drivers/STM32F0xx_HAL_Driver/Inc
|
|
../Drivers/CMSIS/Device/ST/STM32F0xx/Include
|
|
../Drivers/CMSIS/Include)
|
|
|
|
set(C_SOURCES
|
|
main.c
|
|
stm32f0xx_it.c
|
|
system_stm32f0xx.c)
|
|
|
|
add_library(${PROJECT_NAME} ${C_SOURCES})
|
|
target_compile_options(${PROJECT_NAME} PRIVATE ${C_FLAGS})
|
|
target_compile_definitions(${PROJECT_NAME} PRIVATE ${C_DEFS})
|
|
target_include_directories(${PROJECT_NAME} PUBLIC ${C_INCLUDES})
|
|
|
|
#To create an alias to be used on the main CMAKE.
|
|
add_library(sub::cSources ALIAS ${PROJECT_NAME})
|