Skip to content

Commit eb0d612

Browse files
authored
Merge pull request #1329 from luxonis/fix-include-utility
fix include directory for tests
2 parents 7011bdd + 846eeca commit eb0d612

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

tests/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ set(test_env
2121

2222
include(CMakeParseArguments)
2323

24+
include_directories(${CMAKE_SOURCE_DIR}/src)
25+
2426
# Function for adding new tests
2527
function(dai_add_test test_name test_src)
2628
# Parse arguments

tests/src/onhost_tests/env_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <string>
44
#include <vector>
55

6-
#include "../../../src/utility/Environment.hpp"
6+
#include <utility/Environment.hpp>
77

88
using namespace dai::utility;
99

tests/src/onhost_tests/naming_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include <catch2/catch_all.hpp>
22

3-
#include "../../src/utility/EepromDataParser.hpp"
3+
#include <utility/EepromDataParser.hpp>
44

55
struct ProductDevice {
66
std::string oldProductName, productName, deviceName;

0 commit comments

Comments
 (0)