added a way to find test data wihout copy

This commit is contained in:
Erik Frojdh
2024-03-14 10:14:34 +01:00
parent 954db79c36
commit 5f8d8a8c0b
4 changed files with 42 additions and 12 deletions

7
tests/test_config.hpp.in Normal file
View File

@ -0,0 +1,7 @@
#pragma once
#include <filesystem>
static constexpr auto test_data_path_str = "@TEST_FILE_PATH@";
inline auto test_data_path() {
return std::filesystem::path(test_data_path_str);
}