File tree 9 files changed +160
-558
lines changed
9 files changed +160
-558
lines changed Original file line number Diff line number Diff line change
1
+ [submodule "cores/test/external/libvireg "]
2
+ path = cores/test/external/libvireg
3
+ url = https://github.com/bcmi-labs/libvireg
Original file line number Diff line number Diff line change @@ -5,21 +5,26 @@ cmake_minimum_required(VERSION 3.0)
5
5
##########################################################################
6
6
7
7
include_directories (include )
8
+ include_directories (external/libvireg/include )
8
9
include_directories (external/catch/v.2.7.0/include )
9
10
10
11
##########################################################################
11
12
12
13
set (CMAKE_CXX_STANDARD 11)
13
14
14
15
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /bin)
16
+ set (CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /lib)
17
+
18
+ ##########################################################################
19
+
20
+ add_subdirectory (external/libvireg) # For building libvireg
15
21
16
22
##########################################################################
17
23
18
24
set (TEST_TARGET testArduinoCore-megaavr)
19
25
20
26
set (TEST_SRCS
21
27
src/test_main.cpp
22
- src/port/megaavr/PORT_t.cpp
23
28
../arduino/NANO_Compat.cpp
24
29
)
25
30
@@ -30,10 +35,8 @@ add_definitions(-DAVR_NANO_4809_328MODE)
30
35
31
36
##########################################################################
32
37
33
- add_executable (
34
- ${TEST_TARGET}
35
- ${TEST_SRCS}
36
- )
38
+ add_executable (${TEST_TARGET} ${TEST_SRCS} )
39
+ target_link_libraries (${TEST_TARGET} vireg)
37
40
38
41
##########################################################################
39
42
Original file line number Diff line number Diff line change 21
21
22
22
/* This is a Arduino.h mockup for test purposes only */
23
23
24
- #include <test /port/megaavr /PORT_t.h>
24
+ #include <vireg /port/megaAVR-0 /PORT_t.h>
25
25
26
26
#endif /* ARDUINO_H_ */
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments