From 28edebb9436c321cc06396623589994973fa9192 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Wed, 7 Jun 2017 19:46:38 +0200 Subject: [PATCH] Added dummy CMakeLists.txt for CLion support (still build with "make"!) --- .gitignore | 2 ++ CMakeLists.txt | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 CMakeLists.txt diff --git a/.gitignore b/.gitignore index cd9493a..9de2f7b 100644 --- a/.gitignore +++ b/.gitignore @@ -43,3 +43,5 @@ # QtCreator user-specific *.pro.user +.idea/ +cmake-build-debug/ diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..4ac65ee --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,25 @@ +cmake_minimum_required(VERSION 3.7) +project(firmware) + +# Fake CMake config for CLion + +set(CMAKE_CXX_STANDARD GNU99) + +set(SOURCE_FILES + main.c + lib/calc.h + lib/iopins.c + lib/iopins.h + lib/nsdelay.h + lib/spi.c + lib/spi.h + lib/usart.c + lib/usart.h + ) + +include_directories(lib + /usr/avr/include/) + +add_definitions(-D__AVR_ATmega328P__) + +add_executable(firmware ${SOURCE_FILES})