aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/unit_tests
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/unit_tests/CMakeLists.txt4
-rw-r--r--test/unit_tests/lexer.cpp10
-rw-r--r--test/unit_tests/parser.cpp4
3 files changed, 9 insertions, 9 deletions
diff --git a/test/unit_tests/CMakeLists.txt b/test/unit_tests/CMakeLists.txt
index 5a46f01..d84829d 100644
--- a/test/unit_tests/CMakeLists.txt
+++ b/test/unit_tests/CMakeLists.txt
@@ -1,9 +1,9 @@
file(GLOB unit_tests_cpp "*.cpp")
add_executable(unit_tests ${unit_tests_cpp})
-target_link_libraries(unit_tests PRIVATE lexer parser)
-target_include_directories(unit_tests PRIVATE ../..)
set_target_properties(unit_tests PROPERTIES OUTPUT_NAME math-server-unit-tests)
+target_link_libraries(unit_tests PRIVATE lexer parser)
+
find_package(Boost REQUIRED COMPONENTS unit_test_framework)
target_link_libraries(unit_tests PRIVATE Boost::disable_autolinking Boost::unit_test_framework)
diff --git a/test/unit_tests/lexer.cpp b/test/unit_tests/lexer.cpp
index 9a3fc26..02e806f 100644
--- a/test/unit_tests/lexer.cpp
+++ b/test/unit_tests/lexer.cpp
@@ -3,11 +3,11 @@
// For details, see https://github.com/egor-tensin/math-server.
// Distributed under the MIT License.
-#include <server/lexer/details/parse.hpp>
-#include <server/lexer/error.hpp>
-#include <server/lexer/lexer.hpp>
-#include <server/lexer/token.hpp>
-#include <server/lexer/token_type.hpp>
+#include <lexer/details/parse.hpp>
+#include <lexer/error.hpp>
+#include <lexer/lexer.hpp>
+#include <lexer/token.hpp>
+#include <lexer/token_type.hpp>
#include <boost/test/data/monomorphic.hpp>
#include <boost/test/data/test_case.hpp>
diff --git a/test/unit_tests/parser.cpp b/test/unit_tests/parser.cpp
index 655ba39..b86d4d4 100644
--- a/test/unit_tests/parser.cpp
+++ b/test/unit_tests/parser.cpp
@@ -3,8 +3,8 @@
// For details, see https://github.com/egor-tensin/math-server.
// Distributed under the MIT License.
-#include <server/parser/error.hpp>
-#include <server/parser/parser.hpp>
+#include <parser/error.hpp>
+#include <parser/parser.hpp>
#include <boost/test/data/monomorphic.hpp>
#include <boost/test/data/test_case.hpp>