From cde1e4d273ef9a32839cba273461b5da795df066 Mon Sep 17 00:00:00 2001 From: przemek83 <4788832+przemek83@users.noreply.github.com> Date: Mon, 23 Dec 2024 09:51:45 +0100 Subject: [PATCH] Use CMAKE_SOURCE_DIR instead of relative path. --- tests/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 092d1fc..c7726cb 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -28,7 +28,7 @@ qt_add_resources(${PROJECT_TESTS}_SOURCES testResources.qrc) add_executable(${PROJECT_TESTS} ${${PROJECT_TESTS}_SOURCES}) -target_include_directories(${PROJECT_TESTS} PRIVATE ../src) +target_include_directories(${PROJECT_TESTS} PRIVATE ${CMAKE_SOURCE_DIR}/src) target_link_libraries(${PROJECT_TESTS} PRIVATE wble Qt6::Core Qt6::Widgets Qt6::Test)