commit before branching

This commit is contained in:
Jonas Zeunert
2018-06-07 23:55:48 +02:00
parent 6540ec6137
commit ceb677530c
3 changed files with 21 additions and 1 deletions

View File

@@ -23,3 +23,23 @@ file(GLOB HEADER_SOURCES ${SOURCE_DIR}/*/*.hpp")
add_library(flippr_driver STATIC ${SOURCES} ${HEADER_SOURCES})
target_link_libraries(flippr_driver ${CMAKE_SOURCE_DIR}/lib/libwiringPi.so.2.44)
enable_testing(TRUE)
# Prepare "Catch" library for other executables
set(CATCH_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../src/tests)
add_library(Catch INTERFACE)
target_include_directories(Catch INTERFACE ${CATCH_INCLUDE_DIR}/*)
# Make test executable
set(TEST_SOURCES ${SOURCE_DIR}/../tests/input)
include_directories(${TEST_SOURCES})
include_directories(${TEST_SOURCES}/mocks)
file(GLOB SOURCES ${TEST_SOURCES}/*.cpp)
file(GLOB HEADER_SOURCES ${TEST_SOURCES}/*.hpp)
add_executable(tests ${SOURCES} ${HEADER_SOURCES})
target_link_libraries(flippr_driver)
target_link_libraries(tests Catch)

View File

@@ -0,0 +1,21 @@
{
"input":
{
"row":
{
"A":"GPIO_13",
"B":"GPIO_14",
"C":"GPIO_15",
},
"column":
{
"A":"GPIO_17",
"B":"GPIO_18",
"C":"GPIO_19",
"input":"GPIO_20"
}
},
"output":
{
}
}