diff options
author | Oxore <oxore@protonmail.com> | 2023-03-05 20:20:45 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2023-03-05 20:20:45 +0300 |
commit | ea807de65b0485ac58b6eae576209c64d4d5c4e9 (patch) | |
tree | b4264d20e1d700cfd9e0ece9d847a825dd1dfc03 /CMakeLists.txt | |
parent | dd01e7ed22cea652061f0d12cecf929e04b285e9 (diff) |
Split app code and third party libraries
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 166 |
1 files changed, 83 insertions, 83 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 35881c2..93cca90 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,71 +13,71 @@ set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fno-omit-frame-pointer") set(CMAKE_LINKER_FLAGS_DEBUG "${CMAKE_LINKER_FLAGS_DEBUG} -fno-omit-frame-pointer") set(cpu_options -mthumb -mcpu=cortex-m0 -msoft-float) set(nixie_clock_sources - "Libraries/Indicate/indicate_modes_task.c" - "Libraries/TouchSense/stmCriticalSection.c" - "Libraries/TouchSense/STMTouch_Driver/src/tsl_linrot.c" - "Libraries/TouchSense/STMTouch_Driver/src/tsl_dxs.c" - "Libraries/TouchSense/STMTouch_Driver/src/tsl_time.c" - "Libraries/TouchSense/STMTouch_Driver/src/tsl_globals.c" - "Libraries/TouchSense/STMTouch_Driver/src/tsl_acq_stm32f0xx.c" - "Libraries/TouchSense/STMTouch_Driver/src/tsl_object.c" - "Libraries/TouchSense/STMTouch_Driver/src/tsl_filter.c" - "Libraries/TouchSense/STMTouch_Driver/src/tsl_acq.c" - "Libraries/TouchSense/STMTouch_Driver/src/tsl_time_stm32f0xx.c" - "Libraries/TouchSense/STMTouch_Driver/src/tsl_touchkey.c" - "Libraries/TouchSense/STMTouch_Driver/src/tsl.c" - "Libraries/TouchSense/STMTouch_Driver/src/tsl_ecs.c" - "Libraries/TouchSense/tsl_user.c" - "Libraries/Button/button_handler.c" - "Libraries/Button/button_task.c" - "Libraries/LED_Driver/led_driver_config.c" - "Libraries/LED_Driver/led_driver_process.c" - "Libraries/LED_Driver/led_driver_task.c" - "Libraries/LTimers/ltimers.c" - "Libraries/LTimers/ltimers_config.c" - "Libraries/FreeRTOS/queue.c" - "Libraries/FreeRTOS/timers.c" - "Libraries/FreeRTOS/tasks.c" - "Libraries/FreeRTOS/list.c" - "Libraries/FreeRTOS/croutine.c" - "Libraries/FreeRTOS/event_groups.c" - "Libraries/FreeRTOS/heap_2.c" - "Libraries/NixieDriver/nixie_driver_config.c" - "Libraries/NixieDriver/nixie_driver_task.c" - "Libraries/NixieDriver/nixie_driver_process.c" - "Libraries/Head_Task/head_task.c" - #"Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_exti.c" - #"Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_iwdg.c" - #"Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_comp.c" - "Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_gpio.c" - "Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_rcc.c" - "Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_spi.c" - #"Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_wwdg.c" - #"Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_dbgmcu.c" - "Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_tim.c" - "Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_rtc.c" - #"Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_crc.c" - #"Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_crs.c" - #"Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_syscfg.c" - #"Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_dac.c" - #"Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_cec.c" - #"Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_dma.c" - #"Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_can.c" - "Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_pwr.c" - #"Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_flash.c" - "Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_misc.c" - "Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_adc.c" - #"Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_i2c.c" - "Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_usart.c" - "Libraries/LightSensor/light_sensor_task.c" - "Libraries/Time/time.c" - "Project/src/main.c" - "Project/src/stm32f0xx_it.c" - "Project/src/system_stm32f0xx.c" - "Project/src/platform/stm32f0-gcc/freertos/port.c" - "Project/src/platform/stm32f0-gcc/startup/handlers_cm.c" - "Project/src/platform/stm32f0-gcc/startup/stack.cpp" - "Project/src/platform/stm32f0-gcc/startup/startup.cpp" + "third_party/TouchSense/stmCriticalSection.c" + "third_party/TouchSense/STMTouch_Driver/src/tsl_linrot.c" + "third_party/TouchSense/STMTouch_Driver/src/tsl_dxs.c" + "third_party/TouchSense/STMTouch_Driver/src/tsl_time.c" + "third_party/TouchSense/STMTouch_Driver/src/tsl_globals.c" + "third_party/TouchSense/STMTouch_Driver/src/tsl_acq_stm32f0xx.c" + "third_party/TouchSense/STMTouch_Driver/src/tsl_object.c" + "third_party/TouchSense/STMTouch_Driver/src/tsl_filter.c" + "third_party/TouchSense/STMTouch_Driver/src/tsl_acq.c" + "third_party/TouchSense/STMTouch_Driver/src/tsl_time_stm32f0xx.c" + "third_party/TouchSense/STMTouch_Driver/src/tsl_touchkey.c" + "third_party/TouchSense/STMTouch_Driver/src/tsl.c" + "third_party/TouchSense/STMTouch_Driver/src/tsl_ecs.c" + "third_party/TouchSense/tsl_user.c" + "third_party/FreeRTOS/queue.c" + "third_party/FreeRTOS/timers.c" + "third_party/FreeRTOS/tasks.c" + "third_party/FreeRTOS/list.c" + "third_party/FreeRTOS/croutine.c" + "third_party/FreeRTOS/event_groups.c" + "third_party/FreeRTOS/heap_2.c" + #"third_party/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_exti.c" + #"third_party/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_iwdg.c" + #"third_party/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_comp.c" + "third_party/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_gpio.c" + "third_party/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_rcc.c" + "third_party/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_spi.c" + #"third_party/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_wwdg.c" + #"third_party/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_dbgmcu.c" + "third_party/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_tim.c" + "third_party/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_rtc.c" + #"third_party/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_crc.c" + #"third_party/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_crs.c" + #"third_party/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_syscfg.c" + #"third_party/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_dac.c" + #"third_party/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_cec.c" + #"third_party/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_dma.c" + #"third_party/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_can.c" + "third_party/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_pwr.c" + #"third_party/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_flash.c" + "third_party/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_misc.c" + "third_party/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_adc.c" + #"third_party/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_i2c.c" + "third_party/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_usart.c" + "third_party/Time/time.c" + "app/indicate/indicate_modes_task.c" + "app/button/button_handler.c" + "app/button/button_task.c" + "app/led_driver/led_driver_config.c" + "app/led_driver/led_driver_process.c" + "app/led_driver/led_driver_task.c" + "app/ltimers/ltimers.c" + "app/ltimers/ltimers_config.c" + "app/nixie_driver/nixie_driver_config.c" + "app/nixie_driver/nixie_driver_task.c" + "app/nixie_driver/nixie_driver_process.c" + "app/head_task/head_task.c" + "app/light_sensor/light_sensor_task.c" + "app/main.c" + "app/stm32f0xx_it.c" + "app/system_stm32f0xx.c" + "app/platform/stm32f0-gcc/freertos/port.c" + "app/platform/stm32f0-gcc/startup/handlers_cm.c" + "app/platform/stm32f0-gcc/startup/stack.cpp" + "app/platform/stm32f0-gcc/startup/startup.cpp" ) add_executable(${PROJECT_NAME} @@ -86,21 +86,21 @@ add_executable(${PROJECT_NAME} target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_SOURCE_DIR} - "Libraries/TouchSense/STMTouch_Driver/inc" - "Libraries/CMSIS/Device/Include" - "Libraries/NixieDriver" - "Libraries/FreeRTOS/include" - "Libraries/LTimers" - "Libraries/TouchSense" - "Libraries/Head_Task" - "Libraries/STM32F0xx_StdPeriph_Driver/inc" - "Libraries/Indicate" - "Libraries/LightSensor" - "Libraries/Button" - "Libraries/LED_Driver" - "Libraries/Time" - "Project/inc" - "Project/src/platform/stm32f0-gcc/freertos" + "third_party/TouchSense/STMTouch_Driver/inc" + "third_party/CMSIS/Device/Include" + "third_party/FreeRTOS/include" + "third_party/TouchSense" + "third_party/STM32F0xx_StdPeriph_Driver/inc" + "third_party/Time" + "app" + "app/nixie_driver" + "app/ltimers" + "app/head_task" + "app/indicate" + "app/light_sensor" + "app/button" + "app/led_driver" + "app/platform/stm32f0-gcc/freertos" ) target_compile_definitions(${PROJECT_NAME} PRIVATE @@ -110,9 +110,9 @@ target_compile_definitions(${PROJECT_NAME} PRIVATE ) # select linker script -set(linker_script_mcu "${CMAKE_SOURCE_DIR}/Project/ld/stm32f072x8.ld") -set(linker_script_flash "${CMAKE_SOURCE_DIR}/Project/ld/_flash.ld") -set(linker_script_sram "${CMAKE_SOURCE_DIR}/Project/ld/_sram.ld") +set(linker_script_mcu "${CMAKE_SOURCE_DIR}/app/ld/stm32f072x8.ld") +set(linker_script_flash "${CMAKE_SOURCE_DIR}/app/ld/_flash.ld") +set(linker_script_sram "${CMAKE_SOURCE_DIR}/app/ld/_sram.ld") target_compile_options(${PROJECT_NAME} PRIVATE ${cpu_options} |