include dir was exported
This commit is contained in:
@@ -7,8 +7,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|||||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||||
|
|
||||||
add_library(noolite STATIC
|
add_library(noolite STATIC
|
||||||
interfaces/iusbdevice.h
|
include/iusbdevice.h
|
||||||
src/noolite.h src/noolite.cpp
|
include/noolite.h src/noolite.cpp
|
||||||
src/libusbdevice.h src/libusbdevice.cpp
|
src/libusbdevice.h src/libusbdevice.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -19,3 +19,5 @@ target_link_libraries(noolite PUBLIC ${LIBUSB_LIBRARY})
|
|||||||
target_compile_definitions(noolite PRIVATE NOOLITE_LIBRARY)
|
target_compile_definitions(noolite PRIVATE NOOLITE_LIBRARY)
|
||||||
|
|
||||||
add_subdirectory(tests)
|
add_subdirectory(tests)
|
||||||
|
|
||||||
|
target_include_directories(noolite PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
#include <optional>
|
#include <optional>
|
||||||
|
|
||||||
#include "interfaces/iusbdevice.h"
|
#include "iusbdevice.h"
|
||||||
|
|
||||||
namespace noolitelib
|
namespace noolitelib
|
||||||
{
|
{
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
#ifndef LIBUSBDEVICE_H
|
#ifndef LIBUSBDEVICE_H
|
||||||
#define LIBUSBDEVICE_H
|
#define LIBUSBDEVICE_H
|
||||||
|
|
||||||
#include "interfaces/iusbdevice.h"
|
#include "iusbdevice.h"
|
||||||
|
|
||||||
struct libusb_context;
|
struct libusb_context;
|
||||||
struct libusb_device_handle;
|
struct libusb_device_handle;
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
#include <gmock/gmock.h>
|
#include <gmock/gmock.h>
|
||||||
|
|
||||||
#include "interfaces/iusbdevice.h"
|
#include "iusbdevice.h"
|
||||||
|
|
||||||
class UsbDeviceMock : public noolitelib::IUsbDevice
|
class UsbDeviceMock : public noolitelib::IUsbDevice
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
#include "mocks/usbdevicemock.h"
|
#include "mocks/usbdevicemock.h"
|
||||||
|
|
||||||
#include "src/noolite.h"
|
#include "noolite.h"
|
||||||
|
|
||||||
using namespace testing;
|
using namespace testing;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user