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)
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#include "../utilities/config.h"
|
||||
|
||||
#include "EventHandler.h"
|
||||
#include "EventHandler.hpp"
|
||||
#include "EventNotifier.h"
|
||||
#include "Detector.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user