commit before branching
This commit is contained in:
@@ -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)
|
||||
21
FlippR-Driver/build/bak/json_example/gpio_config.json
Normal file
21
FlippR-Driver/build/bak/json_example/gpio_config.json
Normal 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":
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user