From b5b2c6aee887cfc240f28e1353e83da9f919e919 Mon Sep 17 00:00:00 2001 From: Sayan Date: Sat, 4 Oct 2025 14:50:11 -0400 Subject: [PATCH] improve folder structure --- CMakeLists.txt | 4 ++-- benchmark.cpp => benchmark/benchmark.cpp | 4 ++-- tests.cpp => tests/tests.cpp | 2 +- utilities.hpp => tests/utilities.hpp | 0 4 files changed, 5 insertions(+), 5 deletions(-) rename benchmark.cpp => benchmark/benchmark.cpp (98%) rename tests.cpp => tests/tests.cpp (99%) rename utilities.hpp => tests/utilities.hpp (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 41d6beb..bf9b52d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -53,10 +53,10 @@ FetchContent_MakeAvailable(benchmark) add_library(FastCast INTERFACE fastcast.hpp) -add_executable(measure benchmark.cpp utilities.hpp) +add_executable(measure benchmark/benchmark.cpp tests/utilities.hpp) target_link_libraries(measure PRIVATE benchmark::benchmark FastCast) -add_executable(tests tests.cpp) +add_executable(tests tests/tests.cpp) target_link_libraries(tests PRIVATE FastCast Boost::unit_test_framework) target_include_directories(tests PRIVATE ${Boost_INCLUDE_DIRS}) diff --git a/benchmark.cpp b/benchmark/benchmark.cpp similarity index 98% rename from benchmark.cpp rename to benchmark/benchmark.cpp index e3cc986..16b1b65 100644 --- a/benchmark.cpp +++ b/benchmark/benchmark.cpp @@ -2,8 +2,8 @@ // Created by sayan on 10/4/25. // -#include "fastcast.hpp" -#include "utilities.hpp" +#include "../fastcast.hpp" +#include "../tests/utilities.hpp" #include #include diff --git a/tests.cpp b/tests/tests.cpp similarity index 99% rename from tests.cpp rename to tests/tests.cpp index 9e16823..067e1b0 100644 --- a/tests.cpp +++ b/tests/tests.cpp @@ -4,7 +4,7 @@ // fastcast_test.cpp #define BOOST_TEST_MODULE FastCastTests -#include "fastcast.hpp" +#include "../fastcast.hpp" #include "utilities.hpp" #include diff --git a/utilities.hpp b/tests/utilities.hpp similarity index 100% rename from utilities.hpp rename to tests/utilities.hpp