From 4091af324f1910ab0937fe671e2c738da0621f5b Mon Sep 17 00:00:00 2001 From: Volkan Kumtepeli Date: Fri, 26 Jul 2024 02:28:13 +0100 Subject: [PATCH] include main directory. --- src/CMakeLists.txt | 3 +++ tests/unit/Converter_test.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 3dc75ce..7bdb078 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -3,6 +3,9 @@ cmake_minimum_required(VERSION 3.21) add_library(src STATIC paperCode.cpp) + +target_include_directories(src PUBLIC .) + #add_definitions(-DSLIDE_ROOT_DIR="${CMAKE_CURRENT_SOURCE_DIR}/../") add_subdirectory(types) diff --git a/tests/unit/Converter_test.cpp b/tests/unit/Converter_test.cpp index 3239703..48749c6 100644 --- a/tests/unit/Converter_test.cpp +++ b/tests/unit/Converter_test.cpp @@ -5,7 +5,7 @@ * Author(s): Jorn Reniers */ -#include "../../src/slide.hpp" +#include "slide.hpp" #include #include