cleanup cmake project to move build instructions to toplevel

This commit is contained in:
Julian Daube 2020-11-01 16:40:00 +01:00
parent 15b088d907
commit 3ee9b3f1dd
5 changed files with 32 additions and 10 deletions

14
CMakeLists.txt Normal file
View File

@ -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)

View File

@ -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`.

View File

@ -1,11 +1,4 @@
cmake_minimum_required(VERSION 3.0.0) cmake_minimum_required(VERSION 3.0.0)
set(AVR_MCU attiny84) add_avr_executable(slider-firmware led.c main.c adc.c button.c comm.c)
include(${CMAKE_CURRENT_SOURCE_DIR}/../avr-toolchain.cmake) target_link_libraries(slider-firmware slider-protocol)
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)

13
protocol/CMakeLists.txt Normal file
View File

@ -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})