From 07090d14e0dafc3b5b564a339cd615c2d9864125 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Wed, 31 Aug 2016 16:30:35 +0200 Subject: o A couple of stepper motor driver applications. --- apps/stepper1/CMakeLists.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 apps/stepper1/CMakeLists.txt (limited to 'apps/stepper1/CMakeLists.txt') diff --git a/apps/stepper1/CMakeLists.txt b/apps/stepper1/CMakeLists.txt new file mode 100644 index 0000000..e09a093 --- /dev/null +++ b/apps/stepper1/CMakeLists.txt @@ -0,0 +1,19 @@ +add_executable(stepper1.elf stepper1.cpp + ${STM32F10X_STDPERIPH_LIB}/Libraries/CMSIS/CM3/CoreSupport/core_cm3.c + ${STM32F10X_STDPERIPH_LIB}/Libraries/CMSIS/CM3/DeviceSupport/ST/STM32F10x/system_stm32f10x.c + ${STM32F10X_STDPERIPH_LIB}/Libraries/STM32F10x_StdPeriph_Driver/src/misc.c + ${STM32F10X_STDPERIPH_LIB}/Libraries/STM32F10x_StdPeriph_Driver/src/stm32f10x_rcc.c + ${STM32F10X_STDPERIPH_LIB}/Libraries/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c + ${STM32F10X_STDPERIPH_LIB}/Libraries/STM32F10x_StdPeriph_Driver/src/stm32f10x_gpio.c + ${STM32F10X_STDPERIPH_LIB}/Libraries/STM32F10x_StdPeriph_Driver/src/stm32f10x_dma.c + $ + ) + +target_include_directories(stepper1.elf PUBLIC + $ + ) +target_compile_definitions(stepper1.elf PUBLIC ${STM32F10X_STDPERIPH_DEFINES}) +target_link_libraries(stepper1.elf tinyprintf) + +set_target_properties(stepper1.elf PROPERTIES LINK_FLAGS "-nostartfiles -T${CMAKE_SOURCE_DIR}/cmake/stm32.ld") +add_extra_commands(stepper1.elf) -- cgit v1.2.3