Browse Source

cleanup cmake project to move build instructions to toplevel

master
Julian Daube 2 years ago
parent
commit
3ee9b3f1dd
  1. 14
      CMakeLists.txt
  2. 4
      Readme.md
  3. 0
      cmake/avr-toolchain.cmake
  4. 11
      firmware/CMakeLists.txt
  5. 13
      protocol/CMakeLists.txt

14
CMakeLists.txt

@ -0,0 +1,14 @@
cmake_minimum_required(VERSION 3.0.0)
# configure target cpu
set(AVR_MCU attiny84)
include(cmake/avr-toolchain.cmake)
# create project
project(slider-firmware C)
# add protocol definition
add_subdirectory(protocol)
# add the firmware target
add_subdirectory(firmware)

4
Readme.md

@ -1 +1,3 @@
All about the User Interface resides here
This repostitory is complementary to a project log entry on breadboarder.de about a mixing pult.
The Schematic for the Board design presented here can be found in `doc/schematic.pdf`.

0
firmware/avr-toolchain.cmake → cmake/avr-toolchain.cmake

11
firmware/CMakeLists.txt

@ -1,11 +1,4 @@
cmake_minimum_required(VERSION 3.0.0)
set(AVR_MCU attiny84)
include(${CMAKE_CURRENT_SOURCE_DIR}/../avr-toolchain.cmake)
project(slider_firmware C)
add_subdirectory(SliderCommunication)
add_avr_executable(slider_firmware led.c main.c adc.c button.c comm.c)
target_link_libraries(slider_firmware DSPLAB_SliderCommunication)
add_avr_executable(slider-firmware led.c main.c adc.c button.c comm.c)
target_link_libraries(slider-firmware slider-protocol)

13
protocol/CMakeLists.txt

@ -0,0 +1,13 @@
cmake_minimum_required(VERSION 3.0.0)
project(slider-protocol C)
add_library(slider-protocol INTERFACE)
# add_sources(slider-protocol
# PUBLIC
# communication.h
# interface.h
# )
target_include_directories(slider-protocol INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
Loading…
Cancel
Save