Skip to content

Commit 411a867

Browse files
committed
working CMake env.
1 parent 7b7f504 commit 411a867

File tree

4 files changed

+66
-0
lines changed

4 files changed

+66
-0
lines changed

.gitignore

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Object files
2+
*.o
3+
*.ko
4+
*.obj
5+
*.elf
6+
7+
# Precompiled Headers
8+
*.gch
9+
*.pch
10+
11+
# Libraries
12+
*.lib
13+
*.a
14+
*.la
15+
*.lo
16+
17+
# Shared objects (inc. Windows DLLs)
18+
*.dll
19+
*.so
20+
*.so.*
21+
*.dylib
22+
23+
# Executables
24+
*.exe
25+
*.out
26+
*.app
27+
*.i*86
28+
*.x86_64
29+
*.hex
30+
31+
# Debug files
32+
*.dSYM/
33+
*.su
34+
35+
# build folder
36+
build/

CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
cmake_minimum_required(VERSION 2.8)
3+
4+
#project(EPROM-PROG)
5+
6+
#include_directories(include)
7+
8+
add_subdirectory(AVRhal)
9+
#add_subdirectory(src)

src/CMakeLists.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
##########################################################################
2+
# "THE ANY BEVERAGE-WARE LICENSE" (Revision 42 - based on beer-ware
3+
# license):
4+
# <dev@layer128.net> wrote this file. As long as you retain this notice
5+
# you can do whatever you want with this stuff. If we meet some day, and
6+
# you think this stuff is worth it, you can buy me a be(ve)er(age) in
7+
# return. (I don't like beer much.)
8+
#
9+
# Matthias Kleemann
10+
##########################################################################
11+
12+
SET(EXECUTABLE_NAME "EPROM-PROG")
13+
14+
FILE(GLOB_RECURSE _SOURCES *.c)
15+
FILE(GLOB_RECURSE _HEADERS *.h)
16+
SOURCE_GROUP("Header Files" FILES ${_HEADERS})
17+
18+
add_avr_executable(${EXECUTABLE_NAME} ${_SOURCES} ${_HEADERS})
19+
20+
avr_target_link_libraries(${EXECUTABLE_NAME} HAL)
21+

src/main.c

Whitespace-only changes.

0 commit comments

Comments
 (0)