Added dummy CMakeLists.txt for CLion support (still build with "make"!)

master
Ondřej Hruška 8 years ago
parent b70cf17e53
commit 28edebb943
  1. 2
      .gitignore
  2. 25
      CMakeLists.txt

2
.gitignore vendored

@ -43,3 +43,5 @@
# QtCreator user-specific
*.pro.user
.idea/
cmake-build-debug/

@ -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})
Loading…
Cancel
Save