add_library(cpf_testing_mocks INTERFACE)
target_sources(cpf_testing_mocks INTERFACE
    bsp_time.cpp
    MockUART.cpp
    MockUART.hpp
    UARTSpy.cpp
	UARTSpy.hpp
    DevicePowerSwitchSpy.cpp
    DevicePowerSwitchSpy.hpp
    test_helpers.hpp
    SDLogger.cpp
    MockI2C.cpp
    MockI2C.hpp
    CPF_Simulation_Euler.hpp
    MotorizedValveSpy.cpp
    MotorizedValveSpy.hpp
    MotorControllerSpy.cpp
    MotorControllerSpy.hpp
    BellowsPositionSpy.cpp
    BellowsPositionSpy.hpp)
target_include_directories(cpf_testing_mocks INTERFACE .)
target_link_libraries(cpf_testing_mocks INTERFACE cpf_interfaces cpf_support CppUTestExt)

add_library(cpf_mock_tests INTERFACE)
target_include_directories(cpf_mock_tests INTERFACE .)
target_sources(cpf_mock_tests INTERFACE
	UARTSpy_tests.cpp
    MockI2C_tests.cpp
    bsp_time_tests.cpp
)
# target_link_libraries(cpf_mock_tests INTERFACE cpf_devices)